:root {
                --primary-blue: #3b82f6;
                --secondary-blue: #1e40af;
                --light-blue: #dbeafe;
                --soft-blue: #f0f9ff;
                --dark-blue: #1e293b;
                --text-gray: #64748b;
                --border-gray: #e2e8f0;
                --success-green: #10b981;
                --error-red: #ef4444;
            }
            
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
            
            body {
                font-family: 'Inter', sans-serif;
                line-height: 1.6;
                color: var(--dark-blue);
                background: linear-gradient(135deg, var(--soft-blue) 0%, var(--light-blue) 100%);
                min-height: 100vh;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                overflow-x: hidden;
            }
            
            /* Background decoration */
            body::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" style="stop-color:%233b82f6;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%233b82f6;stop-opacity:0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/></svg>') no-repeat center;
                background-size: cover;
                opacity: 0.5;
                z-index: -1;
            }
            
                .btn-login.countdown {
    background-color: #6c757d !important;
    cursor: not-allowed;
}

.btn-login.countdown:hover {
    background-color: #6c757d !important;
}
            
            /* Login Container */
            .login-container {
                background: white;
                border-radius: 24px;
                box-shadow: 0 25px 80px rgba(59, 130, 246, 0.15);
                overflow: hidden;
                width: 100%;
                max-width: 1000px;
                min-height: 600px;
                display: grid;
                grid-template-columns: 1fr 1fr;
                position: relative;
                animation: slideUp 0.6s ease;
            }
            
            @keyframes slideUp {
                from {
                    opacity: 0;
                    transform: translateY(50px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
            
            /* Left Panel - Login Form */
            .login-panel {
                padding: 60px 50px;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            
            .brand-logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Tambahan ini untuk posisi horizontal tengah */
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}
            
            .login-title {
                font-size: 2.2rem;
                font-weight: 700;
                color: var(--dark-blue);
                margin-bottom: 8px;
            }
            
            .login-subtitle {
                color: var(--text-gray);
                margin-bottom: 40px;
                font-size: 1rem;
            }
            
            .form-group {
                margin-bottom: 24px;
                position: relative;
            }
            
            .form-label {
                display: block;
                margin-bottom: 8px;
                font-weight: 500;
                color: var(--dark-blue);
                font-size: 0.95rem;
            }
            
            .form-control {
                width: 100%;
                padding: 16px 20px;
                border: 2px solid var(--border-gray);
                border-radius: 12px;
                font-size: 1rem;
                transition: all 0.3s ease;
                background: white;
            }
            
            .form-control:focus {
                outline: none;
                border-color: var(--primary-blue);
                box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            }
            
            .form-control.error {
                border-color: var(--error-red);
            }
            
            .form-control.success {
                border-color: var(--success-green);
            }
            
            .password-input {
                position: relative;
            }
            
            .password-toggle {
                position: absolute;
                right: 16px;
                top: 50%;
                transform: translateY(-50%);
                background: none;
                border: none;
                color: var(--text-gray);
                cursor: pointer;
                padding: 4px;
                transition: all 0.3s ease;
            }
            
            .password-toggle:hover {
                color: var(--primary-blue);
            }
            
            .form-options {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 32px;
            }
            
            .remember-me {
                display: flex;
                align-items: center;
                gap: 8px;
            }
            
            .remember-me input[type="checkbox"] {
                width: 18px;
                height: 18px;
                accent-color: var(--primary-blue);
            }
            
            .remember-me label {
                font-size: 0.9rem;
                color: var(--text-gray);
                cursor: pointer;
            }
            
            .forgot-password {
                color: var(--primary-blue);
                text-decoration: none;
                font-size: 0.9rem;
                font-weight: 500;
                transition: all 0.3s ease;
            }
            
            .forgot-password:hover {
                color: var(--secondary-blue);
                text-decoration: underline;
            }
            
            .btn-login {
                width: 100%;
                background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
                border: none;
                padding: 16px 24px;
                border-radius: 12px;
                color: white;
                font-weight: 600;
                font-size: 1.1rem;
                transition: all 0.3s ease;
                margin-bottom: 24px;
                position: relative;
                overflow: hidden;
            }
            
            .btn-login:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
            }
            
            .btn-login:active {
                transform: translateY(0);
            }
            
            .btn-login.loading {
                color: transparent;
            }
            
            .btn-login .spinner {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 20px;
                height: 20px;
                border: 2px solid rgba(255, 255, 255, 0.3);
                border-top: 2px solid white;
                border-radius: 50%;
                animation: spin 1s linear infinite;
                display: none;
            }
            
            .btn-login.loading .spinner {
                display: block;
            }
            
            @keyframes spin {
                0% { transform: translate(-50%, -50%) rotate(0deg); }
                100% { transform: translate(-50%, -50%) rotate(360deg); }
            }
            
            .social-login {
                display: flex; /* Ubah grid menjadi flex */
                flex-direction: column; /* Tombol akan ditata secara vertikal */
                gap: 12px;
                margin-bottom: 22px;
                width: 100%; /* Pastikan container mengambil lebar penuh */
            }
            
            .btn-social {
                padding: 12px 16px;
                border: 2px solid var(--border-gray);
                border-radius: 12px;
                background: white;
                color: var(--text-gray);
                font-weight: 500;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                text-decoration: none;
                width: 100%; /* Tombol akan mengisi lebar penuh */
            }
            
            .btn-social:hover {
                border-color: var(--primary-blue);
                color: var(--primary-blue);
                transform: translateY(-2px);
            }
            
            .signup-link {
                text-align: center;
                color: var(--text-gray);
                font-size: 0.95rem;
            }
            
            .signup-link a {
                color: var(--primary-blue);
                font-weight: 600;
                text-decoration: none;
                transition: all 0.3s ease;
            }
            
            .signup-link a:hover {
                color: var(--secondary-blue);
                text-decoration: underline;
            }
            
            .error-message {
                color: var(--error-red);
                font-size: 0.85rem;
                margin-top: 6px;
                display: none;
            }
            
            .error-message.show {
                display: block;
            }
            
            /* Right Panel - Illustration */
            .illustration-panel {
                background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 60px 40px;
                color: white;
                position: relative;
                overflow: hidden;
            }
            
            .illustration-panel::before {
                content: '';
                position: absolute;
                top: -50%;
                left: -50%;
                width: 200%;
                height: 200%;
                background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
                background-size: 20px 20px;
                animation: float 20s linear infinite;
            }
            
            @keyframes float {
                0% { transform: translate(0, 0) rotate(0deg); }
                100% { transform: translate(-20px, -20px) rotate(360deg); }
            }
            
            .illustration-content {
                text-align: center;
                position: relative;
                z-index: 2;
            }
            
            .illustration-icon {
                font-size: 8rem;
                margin-bottom: 32px;
                opacity: 0.9;
                animation: pulse 2s ease-in-out infinite;
            }
            
            @keyframes pulse {
                0%, 100% { transform: scale(1); }
                50% { transform: scale(1.05); }
            }
            
            .illustration-title {
                font-size: 2rem;
                font-weight: 700;
                margin-bottom: 16px;
            }
            
            .illustration-subtitle {
                font-size: 1.1rem;
                opacity: 0.9;
                line-height: 1.6;
            }
            
            /* Responsive Design */
            @media (max-width: 768px) {
                .login-container {
                    grid-template-columns: 1fr;
                    margin: 20px;
                    max-width: 450px;
                    min-height: auto;
                }
                
                .illustration-panel {
                    display: none;
                }
                
                .login-panel {
                    padding: 40px 30px;
                }
                
                .login-title {
                    font-size: 1.8rem;
                }
                
                .brand-logo {
                    font-size: 1.5rem;
                    margin-bottom: 30px;
                }
                
                .social-login {
                    grid-template-columns: 1fr;
                }
            }
            
            /* OTP Form Styling */
.otp-info {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--soft-blue);
    border-radius: 12px;
    border: 1px solid var(--light-blue);
}

.otp-info i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
    display: block;
}

.otp-info p {
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-weight: 500;
}

.otp-info small {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* OTP Input Styling */
#otp_input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 8px;
    padding: 20px 16px;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.resend-section p {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-blue);
}

.btn-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-link i {
    margin-right: 6px;
}

/* Back Section */
.back-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

/* Success state for form controls */
.form-control.success {
    border-color: var(--success-green);
    background-color: rgba(16, 185, 129, 0.05);
}

/* Phone input styling */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Loading state for resend button */
.btn-link .fa-spinner {
    animation: spin 1s linear infinite;
}
            
            @media (max-width: 480px) {
                .login-container {
                    margin: 10px;
                }
                
                .login-panel {
                    padding: 30px 20px;
                }
                .otp-info {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .otp-info i {
        font-size: 2.5rem;
    }
    
    #otp_input {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
    
    .resend-section {
        padding: 16px;
    }
            }
            
            /* Success/Error Toast */
            .toast-container {
                position: fixed;
                top: 20px;
                right: 20px;
                z-index: 9999;
            }
            
            .toast {
                background: white;
                border-radius: 12px;
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
                padding: 16px 20px;
                margin-bottom: 12px;
                display: flex;
                align-items: center;
                gap: 12px;
                transform: translateX(100%);
                transition: all 0.3s ease;
                border-left: 4px solid var(--success-green);
            }
            
            .toast.error {
                border-left-color: var(--error-red);
            }
            
            .toast.show {
                transform: translateX(0);
            }
            
            .toast-icon {
                font-size: 1.2rem;
            }
            
            .toast.error .toast-icon {
                color: var(--error-red);
            }
            
            .toast:not(.error) .toast-icon {
                color: var(--success-green);
            }