/* ==========================================================================
   Login Page Styles - HRM Management
   ========================================================================== */
/* ==========================================================================
   WCAG 2.1 AA Color Contrast Compliance — Verified
   Requirement 9.4: ≥4.5:1 for normal text, ≥3:1 for large text (≥18px/14px bold)
   ---------------------------------------------------------------------------
   Text Color             Background      Ratio    Usage                  Result
   ---------------------------------------------------------------------------
   #212121 (text-main)    #ffffff          16.1:1   Body text, labels      ✓ AA
   #6b7280 (text-muted)   #ffffff           5.0:1   Muted/secondary text   ✓ AA
   #1967b2 (primary)      #ffffff           4.56:1  Links, interactive     ✓ AA
   #ffffff                #1967b2           4.56:1  Button text on primary ✓ AA
   #ffffff                #145a9e           5.2:1   Branding panel text    ✓ AA
   #D60000 (danger)       #fef2f2           4.8:1   Error messages         ✓ AA
   #212121                #ffffff          16.1:1   Success heading (22px) ✓ AAA
   #6b7280                #ffffff           5.0:1   Success paragraph      ✓ AA
   #212121                #ffffff          16.1:1   Checkbox label (14px)  ✓ AA
   ---------------------------------------------------------------------------
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design System)
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #1967b2;
    --color-primary-dark: #145a9e;
    --color-primary-light: rgba(25, 103, 178, 0.15);
    --color-danger: #D60000;
    --color-error-bg: #fef2f2;
    --color-error-border: #fecaca;
    --color-text-main: #212121;
    --color-text-muted: #6b7280;
    --color-border: #e0e0e0;
    --color-bg-white: #ffffff;
    --color-bg-page: #f8fafc;
    --primary-color: #4f46e5; /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --secondary-color: #06b6d4; /* Cyan 500 */
    --text-dark: #1f2937; /* Gray 800 */
    --text-muted: #4b5563; /* Gray 600 */
    --error-color: #e11d48; /* Rose 600 */
    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    /* Typography */
    --font-family: 'Be Vietnam Pro', sans-serif;
    --font-size-base: 14px;
    --font-size-heading: 28px;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-medium: 300ms ease;
    --transition-slow: 400ms ease-out;
}
body {
    font-family: var(--font-family);
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #3b2c7a, #4f46e5, #06b6d4, #10b981);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}
/* --------------------------------------------------------------------------
   Base Reset & Login Page Container
   -------------------------------------------------------------------------- */
.login-page {
    display: flex;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text-main);
    background-color: var(--color-bg-page);
}

/* --------------------------------------------------------------------------
   Branding Panel (Left - 45%)
   -------------------------------------------------------------------------- */
.branding-panel {
    width: 45%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Form Panel (Right - 55%)
   -------------------------------------------------------------------------- */
.form-panel {
    width: 55%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-page);
    overflow-y: auto;
    padding: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   Login Card
   -------------------------------------------------------------------------- */
.login-card {
    background: var(--color-bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 480px;
}

/* --------------------------------------------------------------------------
   Form Input Group
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 6px;
    color: var(--color-text-main);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 0 16px 0 44px;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(25, 103, 178, 0.15);
}

.form-input:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Mobile Logo (hidden on desktop, shown on mobile/tablet)
   -------------------------------------------------------------------------- */
.mobile-logo {
    display: none;
    max-height: 40px;
    margin: 0 auto var(--spacing-md) auto;
}

/* --------------------------------------------------------------------------
   Prevent Horizontal Scroll (all viewports 320px–2560px)
   -------------------------------------------------------------------------- */
.login-page {
    max-width: 100vw;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints (Mobile-First Media Queries)
   -------------------------------------------------------------------------- */

/* Tablet & Mobile: ≤992px
   - Hide branding panel
   - Form panel full width
   - Show mobile logo
   - Reduce card padding
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .branding-panel {
        display: none;
    }

    .form-panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: var(--spacing-lg);
    }

    .mobile-logo {
        display: block;
    }

    .login-card {
        padding: var(--spacing-lg); /* 24px */
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Tablet: 768px–992px
   - Center form card with max-width 480px
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 992px) {
    .login-card {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Mobile: <768px
   - Card at full width minus 32px padding (16px each side)
   - Touch targets minimum 44x44px
   - Remove card decoration on very small screens
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .login-page {
        display: block;
    }

    .form-panel {
        width: 100%;
        padding: var(--spacing-md);
        align-items: flex-start;
    }

    .login-card {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        padding: var(--spacing-lg); /* 24px */
    }

    /* Touch targets: ensure minimum 44x44px for interactive elements */
    .btn-submit,
    .password-toggle,
    .captcha-group a,
    .checkbox-wrapper {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-submit {
        height: 48px;
    }

    .form-input {
        height: 48px;
    }

    .checkbox-wrapper {
        padding: 10px 0;
    }
}

/* Very small screens: ≤480px
   - Remove card shadow and border-radius for edge-to-edge feel
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .form-panel {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-card {
        width: calc(100% - 32px);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
}

/* Minimum viewport: 320px
   - Use relative units and flexible widths
   - Ensure no overlap or truncation
   -------------------------------------------------------------------------- */
@media (max-width: 320px) {
    .login-card {
        width: calc(100% - 24px);
        padding: var(--spacing-md); /* 16px */
    }

    .form-panel {
        padding: 0;
    }

    .mobile-logo {
        max-height: 32px;
    }
}

/* --------------------------------------------------------------------------
   Password Toggle Button
   Requirement 3.4: Positioned inside password input on right, min 40x40px
   Requirement 3.5: Red eye-off icon when password is visible
   -------------------------------------------------------------------------- */
.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--color-primary);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Password visible state: eye-off icon turns red (#D60000) */
.input-wrapper.password-visible .password-toggle,
.password-toggle.password-visible {
    color: var(--color-danger);
}


/* --------------------------------------------------------------------------
   CAPTCHA Widget Styles
   Validates: Requirements 8.1, 8.2, 8.3
   -------------------------------------------------------------------------- */

/* CAPTCHA display row: image + refresh button side-by-side */
.captcha-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm); /* 8px */
    margin-bottom: var(--spacing-sm); /* 8px */
}

/* CAPTCHA image styling */
.captcha-display img {
    height: 44px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Refresh button/link: 40x40px clickable, centered icon, muted default color */
.captcha-display a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: color var(--transition-fast);
}

/* Refresh button hover: transition to primary color */
.captcha-display a:hover {
    color: var(--color-primary);
}

/* Refresh button focus-visible: accessible keyboard focus indicator */
.captcha-display a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* CAPTCHA input inherits .form-input styling (defined in task 2.1).
   No additional override needed — the input uses class="form-input". */

/* --------------------------------------------------------------------------
   Remember Checkbox (Custom Styled)
   -------------------------------------------------------------------------- */
.form-options {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    min-height: 24px;
    padding: 10px 8px;
    position: relative;
    user-select: none;
}

.custom-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.custom-checkbox:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark::after {
    content: "";
    display: none;
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox:checked ~ .checkmark::after {
    display: block;
}

.custom-checkbox:focus-visible ~ .checkmark {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

.checkbox-label {
    margin-left: 10px;
    font-size: 14px;
    color: var(--color-text-main);
}


/* --------------------------------------------------------------------------
   Submit Button (.btn-submit)
   Requirements 2.4, 2.5, 5.2
   -------------------------------------------------------------------------- */
.btn-submit {
    height: 48px;
    border-radius: 8px;
    width: 100%;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    font-family: var(--font-family);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Loading state: hide text and icon, show spinner */
.btn-submit .loader {
    display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .loader {
    display: block;
}

/* --------------------------------------------------------------------------
   Loader Spinner (.loader)
   -------------------------------------------------------------------------- */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------------------------------------
   Error Display (.error-message)
   Requirements 6.1, 6.2, 6.6
   -------------------------------------------------------------------------- */

/* Hidden by default; flex row layout with icon + text */
.error-message {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px; /* 12px gap above submit button */
}

/* Visible state: show as flex */
.error-message.show,
.error-message.visible {
    display: flex;
}

/* Error icon: fixed size, danger color, no shrink */
.error-icon {
    color: var(--color-danger);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Error text: wraps to multiple lines, no truncation */
.error-message span,
#errorText {
    color: var(--color-danger);
    font-size: var(--font-size-base);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


/* --------------------------------------------------------------------------
   Success Overlay (.success-state)
   Requirements 5.4, 5.5: Fade in on auth success, progress bar fills 0→100%
   -------------------------------------------------------------------------- */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl);
}

.success-state.show,
.success-state.visible {
    display: flex;
}

.success-icon-box {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.success-icon-box svg,
.success-icon-box i {
    width: 64px;
    height: 64px;
}

.success-state h3 {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

.success-state p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   Progress Bar (.progress-bar-wrapper / .progress-fill)
   Requirement 5.5: Animated fill 0% → 100% over 2s
   -------------------------------------------------------------------------- */
.progress-bar-wrapper {
    width: 100%;
    max-width: 280px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 2s linear;
}


/* --------------------------------------------------------------------------
   Animation Keyframes
   Validates: Requirements 5.1, 5.5, 5.6
   -------------------------------------------------------------------------- */

/* Login card entrance animation: fade in + slide up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error message entrance animation: slide down + fade in */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success progress bar fill animation */
@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* NOTE: @keyframes spin is already defined above (task 2.5) */

/* --------------------------------------------------------------------------
   Animation Applications
   -------------------------------------------------------------------------- */

/* Login card entrance on page load */
.login-card {
    animation: fadeInUp 400ms ease-out forwards;
}

/* Error message slide-down entrance */
.error-message.show,
.error-message.slide-down {
    animation: slideDown 200ms ease forwards;
}

/* Success progress bar fill */
.progress-fill.animate,
.progress-fill.active {
    animation: progressFill 2s linear forwards;
}


@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================
           2. Floating Shapes Background
        ========================================== */
.shape {
    position: absolute;
    filter: blur(60px);
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 0, 150, 0.4);
    top: 5%;
    left: 10%;
    border-radius: 50%;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 5%;
    right: 10%;
    border-radius: 50%;
    animation-delay: -4s;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-40px) scale(1.1);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* ==========================================
           3. Layout Container (Glass Card)
        ========================================== */
.main-container {
    width: 100%;
    max-width: 1024px;
    position: relative;
    z-index: 10;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    /* Entrance Animation */
    animation: cardFadeIn 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Layout (Desktop: Side by side) */
@media (min-width: 1024px) {
    .main-container {
        flex-direction: row;
    }

    .left-panel, .right-panel {
        width: 50%;
    }

    body {
        padding: 3rem;
    }
}
@media (min-width: 1600px) {
    .main-container {
        flex-direction: row;
    }

    .left-panel, .right-panel {
        width: 50%;
    }

    body {
        padding: 8rem;
    }
}


/* ==========================================
           4. Left Panel (Branding)
        ========================================== */
.left-panel {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(49, 46, 129, 0.2); /* Indigo 900/20 equivalent */
}

@media (min-width: 1024px) {
    .left-panel {
        padding: 3rem;
    }
}

.left-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 0;
}

.left-panel-content {
    position: relative;
    z-index: 1;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
    .brand-icon span {
        padding-left: 8px;
    }
    .brand-title {
        font-size: 1.875rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

@media (min-width: 1024px) {
    .brand-title {
        font-size: 2.25rem;
    }
}

.text-gradient {
    background: linear-gradient(to right, #67e8f9, #6ee7b7); /* Cyan to Emerald */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-desc {
    color: #e0e7ff; /* Indigo 100 */
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 28rem;
}

@media (min-width: 1024px) {
    .brand-desc {
        font-size: 1rem;
    }
}

.features-list li {
    display: flex;
    align-items: center;
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.features-list i {
    color: #22d3ee; /* Cyan 400 */
    margin-right: 0.75rem;
}

.left-panel-footer {
    position: relative;
    z-index: 1;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: #c7d2fe; /* Indigo 200 */
}

    .left-panel-footer a {
        color: #fff;
    }

        .left-panel-footer a:hover {
            text-decoration: underline;
        }

/* ==========================================
           5. Right Panel (Login Form)
        ========================================== */
.right-panel {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .right-panel {
        padding: 3rem;
    }
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
    .form-title {
        font-size: 1.875rem;
    }
}

.form-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.input-wrapper {
    position: relative;
    display: flex;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.custom-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    outline: none;
}

    .custom-input::placeholder {
        color: #6b7280;
        font-weight: 400;
    }

    .custom-input:focus {
        background: #ffffff;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
    }

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    outline: none;
}

    .btn-toggle-password:hover {
        color: var(--primary-hover);
    }

/* ==========================================
           6. Captcha Box Area
        ========================================== */
.captcha-box {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

    .captcha-box:hover {
        background: rgba(255, 255, 255, 0.8);
        border-color: var(--primary-color);
    }

.dnt-captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .dnt-captcha-container {
        flex-direction: row;
    }
}

.captcha-img-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-img-wrapper {
    padding: 0.25rem;
}

    .captcha-img-wrapper .dnt_Captcha {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
.btn-captcha-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .btn-captcha-refresh:hover {
        background: var(--primary-hover);
    }

.captcha-input-group {
    width: 100%;
    position: relative;
}

.captcha-input {
    padding-left: 0.75rem; /* Remove icon padding */
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.error-msg {
    display: block;
    text-align: center;
    color: var(--error-color);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ==========================================
           7. Extra Actions (Remember me, Forgot)
        ========================================== */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

    .checkbox-group input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        accent-color: var(--primary-color);
        cursor: pointer;
    }

    .checkbox-group label {
        margin-left: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-dark);
        cursor: pointer;
    }

.forgot-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-hover);
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: var(--secondary-color);
    }

/* ==========================================
           8. Submit Button
        ========================================== */
.btn-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% auto;
    transition: 0.5s;
}

    .btn-submit:hover {
        background-position: right center;
        box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.5);
        transform: translateY(-2px);
    }

    .btn-submit i {
        margin-left: 0.5rem;
    }
.captcha-img-wrapper .dnt_Captcha img {
    width: 60%;
    object-fit: fill;
    height: 100%;
    max-width: 100%;
}
.capt-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 1.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    font-size: 1.175rem;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dnt_Captcha .fad.fa-sync {
    font-size: 25px;
}