* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    display: flex;
    width: 900px;
    height: 550px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Bagian Banner (Kiri) */
.banner-side {
    flex: 1;
    background:
        linear-gradient(180deg, rgba(1, 116, 123, 0.11), rgb(1, 116, 123)),
        url("../../../Bg_uin3.png") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    text-align: center;
}

.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.btn-promo {
    margin-top: 20px;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-promo:hover {
    background: white;
    color: #764ba2;
}

/* Bagian Form (Kanan) */
.form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 40px;
}

.header h1 {
    color: #333;
    margin-bottom: 5px;
}

.header p {
    color: #777;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #01747b;
}

.options {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 25px;
    color: #666;
}

.options a {
    color: #999;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #01747b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #006166;
}

.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #777;
}

.footer-text a {
    color: #01747b;
    text-decoration: none;
    font-weight: 600;
}

/* Styling untuk label checkbox */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
}

.options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #444;
    gap: 8px;
}

input[type="checkbox"] {
    accent-color: #01747b;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.options a:hover {
    color: #01747b;
    text-decoration: none;
}

/* Responsivitas untuk Layar Kecil */
@media (max-width: 768px) {
    body {
        background-color: #fff;
        min-height: 0vh;
    }
    .banner-content h2 {
        font-size: 23px;
    }
    .login-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin-top: 0px;
        box-shadow: none;
        border-radius: 0px;
    }
    .banner-side {
        margin-top: 0px;
    }
    .form-side {
        padding: 45px;
    }
    .header h1 {
        font-size: 25px;
    }
}

/* Styling Khusus OTP */
.otp-input-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
}

.otp-input {
    width: 60px;
    height: 65px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #01747b;
    background: #fff;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
    outline: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.back-link:hover {
    color: #01747b;
}

/* Warna khusus untuk banner OTP (opsional) */
.otp-banner {
    background:
        linear-gradient(180deg, rgba(1, 78, 83, 0.2), rgba(1, 116, 123, 0.6)),
        url("../../../Bg_otp.jpg") no-repeat center center !important;
    background-size: cover !important;
}

#resend-link.disabled {
    color: #ccc;
    pointer-events: none;
}

/* Styling Khusus MFA */
.mfa-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.mfa-grid {
    gap: 8px !important; /* Jarak lebih rapat karena ada 6 kotak */
}

.mfa-grid .otp-input {
    width: 45px; /* Sedikit lebih kecil agar muat 6 kotak */
    height: 55px;
    font-size: 1.2rem;
}

.mfa-banner {
    background:
        linear-gradient(180deg, rgba(1, 78, 83, 0.2), rgba(1, 116, 123, 0.6)),
        url("../../../Bg_mfa.jpg") no-repeat center center !important;
}

.mfa-options {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

.mfa-options a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 600;
}

/* Penyesuaian Mobile untuk 6 digit */
@media (max-width: 480px) {
    .mfa-grid {
        gap: 5px !important;
    }
    .mfa-grid .otp-input {
        width: 40px;
    }
}

/* Styling Khusus Registrasi MFA */
.setup-steps {
    margin-bottom: 20px;
    text-align: left;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.step-number {
    background: #01747b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step p {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.4;
}

.qr-section {
    text-align: center;
    background: #fdfdfd;
    border: 1px dashed #ccc;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0 25px 0;
}

.qr-code {
    background: white;
    padding: 10px;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.qr-instruction {
    font-size: 0.75rem;
    color: #777;
}

.qr-instruction code {
    display: block;
    margin-top: 5px;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
    background: #eee;
    padding: 2px 5px;
}

.skip-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #bbb;
    text-decoration: none;
}

.register-banner {
    background:
        linear-gradient(180deg, rgba(1, 78, 83, 0.2), rgba(1, 116, 123, 0.6)),
        url("../../../Bg_registers.jpg") no-repeat center center !important;
}

/* Memperbesar container sedikit untuk pendaftaran karena ada gambar QR */
.register-mfa {
    height: auto !important;
    min-height: 500px;
}

/* Tampilan untuk sesi login aktif */
.sessions {
    height: auto !important;
    min-height: 500px;
}

.sessions-banner {
    background:
        linear-gradient(180deg, rgba(1, 78, 83, 0.2), rgba(1, 116, 123, 0.6)),
        url("../../../Bg_session.png") no-repeat center center !important;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.session-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: 0.3s;
}

.device-icon {
    font-size: 24px;
    margin-right: 15px;
}

.session-info {
    flex: 1;
}

.btn-revoke {
    background: transparent;
    color: #b34747;
    border: 1px solid #b34747;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-revoke:hover {
    background: #b34747;
    color: white;
}

.btn-send {
    background: transparent;
    color: #01747b;
    border: 1px solid #01747b;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-send:hover {
    background: #01747b;
    color: white;
}

.session-info h3 {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.session-info p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #888;
}
