/* ============================================
           SEVA STUDEV DESIGN SYSTEM (Lumi Base)
        ============================================ */
:root {
    --lumi-primary: #AD0000;
    --lumi-primary-light: #FFE9EB;
    --lumi-primary-lighter: #FFF5F5;
    --lumi-primary-dark: #8A0000;
    --lumi-primary-darker: #660000;
    --lumi-accent-coral: #FF6B6B;
    --lumi-accent-rose: #FFB4B4;
    --lumi-neutral-50: #FAFAFA;
    --lumi-neutral-100: #F5F5F5;
    --lumi-neutral-200: #E5E5E5;
    --lumi-neutral-300: #D4D4D4;
    --lumi-neutral-400: #A3A3A3;
    --lumi-neutral-500: #737373;
    --lumi-neutral-600: #525252;
    --lumi-neutral-700: #404040;
    --lumi-neutral-800: #262626;
    --lumi-neutral-900: #171717;
    --lumi-font-sans: 'DM Sans', sans-serif;
    --lumi-font-heading: 'Poppins', sans-serif;
    --lumi-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lumi-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* ============================================
           BASE STYLES
        ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--lumi-font-sans);
    background-color: var(--lumi-neutral-50);
    min-height: 100vh;
    /* UX Mobile: Mencegah scroll horizontal yang tidak perlu */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--lumi-font-heading);
}

/* ============================================
           SPLIT SCREEN LAYOUT
        ============================================ */
.split-screen {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel - Brand Side (Marketing Area) */
.left-panel {
    /* Perbaikan Kak Gem: Ubah lebar jadi 40% (sebelumnya 50%) agar lebih proporsional */
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--lumi-primary) 0%, var(--lumi-primary-darker) 100%);
    padding: 3.5rem;
    /* Padding disesuaikan agar tidak terlalu sempit */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Decorations (Background) */
.blob {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
}

.blob-2 {
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
}

.left-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 4rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lumi-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.brand-name {
    font-family: var(--lumi-font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    color: white;
    letter-spacing: -0.5px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    /* Sedikit kurangi scaling font agar pas di 40% width */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 450px;
    line-height: 1.6;
    font-weight: 400;
}

/* Testimonial/Feature Pill (Marketing Trust) */
.trust-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    max-width: fit-content;
    margin-top: auto;
    z-index: 2;
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lumi-primary);
    flex-shrink: 0;
}

.trust-text div:first-child {
    font-weight: 700;
    font-size: 0.9rem;
}

.trust-text div:last-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
           RIGHT PANEL - Login Form
        ============================================ */
.right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 400px;
    /* UX Mobile: Animasi halus saat load */
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Brand */
.mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 2.5rem;
}

.mobile-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--lumi-primary);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0.5rem;
}

.mobile-brand-text {
    font-family: var(--lumi-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--lumi-neutral-900);
}

/* Form Header Copywriting */
.form-header {
    margin-bottom: 2rem;
    text-align: left;
}

.form-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--lumi-neutral-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--lumi-neutral-500);
    font-size: 0.95rem;
}

/* Input Styling (Mobile Optimized) */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lumi-neutral-700);
    margin-bottom: 0.5rem;
}

.form-control {
    /* UX: Touch target minimal 44px height */
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--lumi-neutral-200);
    border-radius: 12px;
    font-size: 1rem;
    /* Ukuran font nyaman dibaca */
    background: var(--lumi-neutral-50);
    transition: all 0.2s;
}

.form-control:focus {
    background: white;
    border-color: var(--lumi-primary);
    box-shadow: 0 0 0 4px var(--lumi-primary-light);
}

/* Password Input Group */
.input-group-text {
    background: var(--lumi-neutral-50);
    border: 1.5px solid var(--lumi-neutral-200);
    border-left: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    padding-right: 1rem;
}

.input-group .form-control {
    border-right: none;
    border-radius: 12px 0 0 12px;
}

.password-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    border-color: var(--lumi-neutral-300);
}

.form-check-input:checked {
    background-color: var(--lumi-primary);
    border-color: var(--lumi-primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--lumi-neutral-600);
    cursor: pointer;
    padding-left: 0.25rem;
}

.forgot-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lumi-primary);
    text-decoration: none;
}

/* Primary Button */
.btn-primary-lumi {
    width: 100%;
    min-height: 52px;
    /* UX: Tombol besar mudah ditekan */
    background: linear-gradient(135deg, var(--lumi-primary) 0%, var(--lumi-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(173, 0, 0, 0.2);
}

.btn-primary-lumi:active {
    transform: scale(0.98);
}

/* Footer Links */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--lumi-neutral-500);
}

.auth-footer a {
    color: var(--lumi-primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.25rem;
}

/* Error Alert Styling */
.alert-custom {
    display: none;
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    color: #9F1239;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ============================================
           RESPONSIVE (MOBILE OPTIMIZATION)
        ============================================ */
@media (max-width: 991.98px) {
    .left-panel {
        display: none;
    }

    /* Hide marketing side on mobile */

    .right-panel {
        align-items: flex-start;
        /* Form start from top slightly */
        padding-top: 3rem;
    }

    .mobile-brand {
        display: block;
    }

    .form-header {
        text-align: center;
    }

    .form-container {
        max-width: 100%;
        padding: 0 0.5rem;
        /* Safe padding from edges */
    }

    .form-control {
        font-size: 16px;
    }

    /* Prevents iOS zoom on focus */
}

/* ============================================
           FORGOT PASSWORD PAGE STYLES
        ============================================ */
/* Left Panel - Forgot Password Variant */
.forgot-left-panel {
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--lumi-primary) 0%, var(--lumi-primary-darker) 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: white;
}

.forgot-left-content {
    position: relative;
    z-index: 2;
}

.forgot-hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.forgot-hero-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 450px;
    line-height: 1.6;
    font-weight: 400;
}

/* Right Panel - Forgot Password Form */
.forgot-right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.forgot-form-container {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-out;
}

.forgot-form-header {
    margin-bottom: 2rem;
    text-align: left;
}

.forgot-form-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--lumi-neutral-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.forgot-form-header p {
    color: var(--lumi-neutral-500);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Input Hint */
.forgot-input-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--lumi-neutral-500);
}

.forgot-input-hint i {
    color: var(--lumi-neutral-400);
}

/* Success Alert */
.forgot-success-alert {
    display: none;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Link */
.forgot-back-link {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lumi-neutral-600);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-back-link a:hover {
    color: var(--lumi-primary);
}

/* Help Text */
.forgot-help-text {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--lumi-neutral-500);
}

.forgot-help-text a {
    color: var(--lumi-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.forgot-help-text a:hover {
    text-decoration: underline;
}

/* Responsive for Forgot Password Page */
@media (max-width: 991.98px) {
    .forgot-left-panel {
        display: none;
    }

    .forgot-right-panel {
        align-items: flex-start;
        padding-top: 3rem;
    }

    .forgot-form-header {
        text-align: center;
    }

    .forgot-form-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

/* ============================================
           RESET PASSWORD PAGE STYLES
        ============================================ */
/* Left Panel - Reset Password Variant */
.reset-left-panel {
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--lumi-primary) 0%, var(--lumi-primary-darker) 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: white;
}

.reset-left-content {
    position: relative;
    z-index: 2;
}

.reset-hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.reset-hero-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 450px;
    line-height: 1.6;
    font-weight: 400;
}

/* Right Panel - Reset Password Form */
.reset-right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.reset-form-container {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-out;
}

.reset-form-header {
    margin-bottom: 2rem;
    text-align: left;
}

.reset-form-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--lumi-neutral-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.reset-form-header p {
    color: var(--lumi-neutral-500);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Password Hint */
.reset-password-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--lumi-neutral-500);
}

.reset-password-hint i {
    color: var(--lumi-neutral-400);
}

/* Password Strength Indicator */
.reset-strength-indicator {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--lumi-neutral-50);
    border-radius: 12px;
    border: 1px solid var(--lumi-neutral-200);
}

.reset-strength-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.reset-strength-label span:first-child {
    color: var(--lumi-neutral-600);
    font-weight: 500;
}

.reset-strength-label span:last-child {
    font-weight: 700;
}

.reset-strength-bar {
    height: 6px;
    background: var(--lumi-neutral-200);
    border-radius: 10px;
    overflow: hidden;
}

.reset-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

/* Success Alert */
.reset-success-alert {
    display: none;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease-out;
}

/* Back Link */
.reset-back-link {
    margin-top: 1.5rem;
    text-align: center;
}

.reset-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lumi-neutral-600);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.reset-back-link a:hover {
    color: var(--lumi-primary);
}

/* Responsive for Reset Password Page */
@media (max-width: 991.98px) {
    .reset-left-panel {
        display: none;
    }

    .reset-right-panel {
        align-items: flex-start;
        padding-top: 3rem;
    }

    .reset-form-header {
        text-align: center;
    }

    .reset-form-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}
