@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0b101e;
    --bg-card: #151b2b;
    --bg-card-hover: #1a2235;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #1f2937;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --color-blue: #2563eb;
    --color-purple: #7c3aed;
    --color-green: #10b981;
    --color-red: #ef4444;
    
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ANTI-OVERFLOW VIEWS ASSURANCE LAYERS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Preloader starts here */
/* --- PREMIUM FINTECH PRELOADER --- */
#fintech-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #070b14; /* Deepest black from your header */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Over everything */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-container {
    text-align: center;
    z-index: 10;
    width: 280px;
}

/* Logo Animation */
.loader-logo {
    margin-bottom: 40px;
    animation: loaderPulse 2s infinite ease-in-out;
}

.logo-hexagon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    font-size: 32px;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.loader-brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

/* Progress Bar Styling */
.loader-progress-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.loader-progress-bar {
    width: 0%; /* Controlled by JS */
    height: 100%;
    background: #2563eb;
    border-radius: 10px;
    position: relative;
    transition: width 0.3s ease;
}

.shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* Status Text Messaging */
.loader-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

#status-text {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ambient Background Glows */
.glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
}

.glow-1 { top: -50px; right: -50px; background: #2563eb; }
.glow-2 { bottom: -50px; left: -50px; background: #7c3aed; }

/* Animations */
@keyframes shimmer {
    100% { left: 100%; }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
}

/* Hidden Class */
.preloader-hidden {
    opacity: 0;
    pointer-events: none;
}

.nexuist-auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 55%), var(--bg-main);
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* SMOOTH ENTRANCE INTERFACES */
@keyframes forgotFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: forgotFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* HEADER BRAND WRAPPING */
.auth-brand-section {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--color-blue);
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* SUB-PANEL CONTROLLERS Switch Mechanisms */
.recovery-panel {
    display: none;
}

.recovery-panel.active-panel {
    display: block;
    animation: panelShiftIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelShiftIn {
    from { opacity: 0; transform: scale(0.97) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* NOTICE DECORATION INFRASTRUCTURES */
.system-notice-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--color-blue);
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.system-icon-glow {
    font-size: 1.3rem;
    color: #60a5fa;
    margin-top: 0.1rem;
}

.system-notice-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* NO-ZOOM ANTI-ZOOM TEXT INPUTS OVERRIDE */
.form-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.input-field-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.req { color: var(--color-red); }

.interactive-input-container {
    position: relative;
    /* width: 100%; */
     display: flex;                
    gap: 0.2rem;
}

.interactive-input-container input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.8rem 1rem 0.8rem 2.5rem;
     font-size: 16px; 
    outline: none;
    transition: var(--transition);
}



.interactive-input-container input:focus {
    border-color: var(--color-blue);
    background-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.interactive-input-container .field-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.15rem;
    pointer-events: none;
    transition: var(--transition);
}

.interactive-input-container input:focus ~ .field-icon {
    color: var(--color-blue);
}

/* BUTTON ACTION MODULE BUILDERS */
.footer-step-actions-bar {
    margin-top: 1.5rem;
}

.btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-action-submit-execution {
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    color: white;
}

.btn-action-submit-execution:hover {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.btn-action-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-action-secondary:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.02);
    color: white;
    border-color: var(--text-secondary);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* SUCCESS DISPLAY CARD ARCHITECTURE (STEP 2) */
.success-vector-animation-wrapper {
    text-align: center;
    padding: 0.5rem 0;
}

.success-ring-pulsate {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.success-icon-spin {
    font-size: 2rem;
    color: var(--color-green);
}

.success-vector-animation-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.success-manifest-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.success-manifest-text strong {
    color: var(--text-primary);
    word-break: break-all;
}

.timer-countdown-block {
    margin: 1.25rem 0;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.timer-countdown-block p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

#resend-timer-span {
    color: var(--color-blue);
    font-weight: 600;
}

/* GLOBAL SHARED FOOTER STRUCTURES */
.auth-card-footer-links {
    margin-top: 1.75rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
}

.auth-card-footer-links p { font-size: 0.85rem; color: var(--text-secondary); }
.login-redirect-link { color: var(--color-blue); text-decoration: none; font-weight: 600; }
.login-redirect-link:hover { text-decoration: underline; }

.security-standards-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.25rem 0;
}

.security-standards-row span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copyright-notice-text {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.15);
}

/* RESPONSIVE CONDENSE LAYER */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.15rem;
    }
}


/*  */

