/* Penyesuaian layout full screen untuk split login */
.app-body main, .admin-body main, body.light-theme:not(.home-page):not(.app-body):not(.admin-body) main {
    padding: 0 !important;
    height: 100vh;
    display: block !important;
    overflow: hidden;
}

.split-login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

/* Sisi Kiri: White Clean */
.login-left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #ffffff;
}

.login-content-box {
    width: 100%;
    max-width: 500px;
}

.login-logo {
    margin-bottom: 30px;
}

.logo-brand {
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -1.5px;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #60efff 0%, #0088ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-brand span {
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    margin-left: 2px;
    font-weight: 700;
}

.logo-brand::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 15px #ffd700;
}

.login-header {
    margin-bottom: 25px;
}

.login-header h2 {
    color: #0f172a; /* Kembali ke warna tegas sebelumnya */
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.login-header p {
    color: #64748b; /* Kembali ke warna teks deskripsi sebelumnya */
    font-size: 0.95rem;
}

/* Sisi Kanan: Blue Theme */
.login-right-section {
    flex: 0.92;
    background: linear-gradient(165deg, #0061ff 0%, #60efff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.login-right-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.overlay-content {
    max-width: 500px;
    text-align: center;
    z-index: 1;
}

.overlay-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.overlay-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-outline-white {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: #0061ff;
    transform: translateY(-3px);
}

/* Sembunyikan secara default di desktop */
.mobile-register-prompt {
    display: none;
}

.auth-link-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.auth-link-prompt a {
    color: #0088ff;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
    transition: opacity 0.2s;
}

/* Refactor Form Elements untuk Background Putih */
.login-left-section .form-group {
    position: relative;
    margin-bottom: 20px;
}

.login-left-section .form-group label {
    color: #475569;
    font-weight: 500;
    font-size: 0.85rem;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: none;
    pointer-events: none;
    text-transform: none;
    letter-spacing: normal;
}

.login-left-section .form-group input {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    padding: 26px 20px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: normal;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.login-left-section .form-group input:focus ~ label,
.login-left-section .form-group input:not(:placeholder-shown) ~ label,
.login-left-section .form-group input:-webkit-autofill ~ label {
    top: 8px;
    transform: translateY(0);
    left: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #0088ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-left-section .form-group input:focus {
    border-color: #0088ff;
    box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.15);
    outline: none;
}

.forgot-password-prompt {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 10px;
}

.forgot-password-prompt a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-password-prompt a:hover {
    color: #0088ff;
}

/* Menangani transisi warna background saat autofill agar tetap putih dan label tetap di atas */
.login-left-section .form-group input:-webkit-autofill,
.login-left-section .form-group input:-webkit-autofill:hover, 
.login-left-section .form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    border-color: #0088ff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-left-section .terms-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    margin-top: 10px;
    justify-content: flex-start;
}

.login-left-section .terms-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0088ff;
}

.login-left-section .terms-group label {
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.login-left-section .terms-group label a {
    color: #0088ff;
    text-decoration: none;
    font-weight: 600;
}

.login-left-section .remember-me-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    margin-top: 45px;
    width: 100%;
    justify-content: flex-start;
}

.login-left-section .remember-me-group input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.login-left-section .remember-me-group label {
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.login-left-section .message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    animation: fadeInUp 0.4s ease-out;
}

.login-left-section .message.success {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.blue-btn {
    background: linear-gradient(135deg, #0088ff 0%, #0051ff 100%);
    color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 136, 255, 0.25);
    width: 100%;
    margin-top: 10px;
}

.auth-footer-copyright {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    opacity: 0.7;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .app-body main, .admin-body main, body.light-theme:not(.home-page):not(.app-body):not(.admin-body) main {
        height: auto;
        overflow: visible;
    }

    .split-login-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .login-right-section {
        display: none;
    }
    .login-left-section {
        flex: 1;
        width: 100%;
        min-height: 100vh;
        padding: 40px 20px;
    }

    .mobile-register-prompt {
        display: block;
        margin: -15px 0 25px 0;
        text-align: right;
    }

    .mobile-register-prompt a {
        color: #0088ff;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 600;
        transition: opacity 0.2s;
    }

    .mobile-register-prompt a:active {
        opacity: 0.7;
    }
}

.auth-container {
    /* Menjaga kompatibilitas dengan halaman pendaftaran lama jika perlu */
    max-width: 450px;
    margin: 0 auto;
}