@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
/* Premium Glassmorphic Login/Auth Theme for G1 Udaan (My AMPL) */
:root {
    --primary: #C99520;
    --primary-hover: #AA7C11;
    --primary-light: rgba(201, 149, 32, 0.1);
    --accent: #D4AF37;
    --text-dark: #0A192F;
    --text-muted: #475569;
    --bg-page: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.94);
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --radius-card: 24px;
    --radius-input: 14px;
    --shadow-card: 0 20px 40px -15px rgba(201, 149, 32, 0.15), 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 30%, #F8FAFC 70%, #FFFBEB 100%) !important;
    background-attachment: fixed !important;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

body.auth-page,
.auth-page body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 16px !important;
    min-height: 100vh !important;
}

/* Gradient & Mesh Glow Layer */
.mesh-bg {
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 10% 10%,  rgba(201, 149, 32, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 90% 10%,  rgba(212, 175, 55, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 80% 70% at 90% 90%,  rgba(201, 149, 32, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 10% 90%,  rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 30%, #F8FAFC 70%, #FFFBEB 100%);
    background-attachment: fixed;
}

/* Fixed Back Link */
.back-link-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    border: 1px solid rgba(201, 149, 32, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}
.back-link-fixed:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 149, 32, 0.12);
}

/* Floating Card Container */
.login-card-floating {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(201, 149, 32, 0.15);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Brand Card Header with Logo */
.auth-brand-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 20px;
    background: linear-gradient(180deg, rgba(201, 149, 32, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(201, 149, 32, 0.08);
}

.auth-brand-header a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.brand-logo-img {
    height: 84px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(201, 149, 32, 0.15));
    transition: transform 0.3s ease;
}
.brand-logo-img:hover {
    transform: scale(1.04);
}

.form-col {
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Single Column Card (SignUp) */
.login-card-single {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 20px 22px;
    position: relative;
    border: 1px solid rgba(201, 149, 32, 0.15);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

.card-header-logo {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201, 149, 32, 0.1);
}

/* Common Form Elements */
.form-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 800;
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group { margin-bottom: 20px; }
.mb-4 { margin-bottom: 1.25rem !important; }

.form-label, label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.88rem;
    margin-bottom: 8px;
    display: block;
}

.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-input);
    padding: 10px 15px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
    width: 100%;
}
.form-control:hover, .form-select:hover {
    border-color: #CBD5E1;
}
.form-control:focus, .form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(201, 149, 32, 0.12);
    outline: none;
}

.login-card-single .btn-primary, 
.login-card-single .btn-success,
.auth-page .btn-primary,
.auth-page .btn-success {
    background: linear-gradient(135deg, #C99520 0%, #AA7C11 100%);
    color: #FFF !important;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    width: 100%;
    margin-top: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(201, 149, 32, 0.2);
    cursor: pointer;
}
.login-card-single .btn-primary:hover, 
.login-card-single .btn-success:hover,
.auth-page .btn-primary:hover,
.auth-page .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 149, 32, 0.35);
    background: linear-gradient(135deg, #AA7C11 0%, #071120 100%);
    color: #FFF !important;
}

.input-group { 
    display: flex; 
    flex-wrap: nowrap; 
    align-items: stretch; 
    width: 100%; 
}
.input-group .input-icon-wrap {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}
.input-group .input-icon-wrap .form-control { 
    border-top-right-radius: 0 !important; 
    border-bottom-right-radius: 0 !important; 
}
.input-group > .btn { 
    flex: 0 0 auto;
    width: auto !important; 
    margin-top: 0 !important; 
    border-top-left-radius: 0 !important; 
    border-bottom-left-radius: 0 !important; 
    border-top-right-radius: var(--radius-input) !important; 
    border-bottom-right-radius: var(--radius-input) !important; 
    padding: 0 22px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none !important;
    white-space: nowrap;
}
.input-group > .btn:hover {
    transform: none !important;
}

/* Password Wrap */
.password-wrap { position: relative; }
.password-toggle {
    position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%);
    color: #94A3B8; cursor: pointer;
    padding: 4px; font-size: 1.1rem;
    transition: color 0.2s;
}
.password-toggle:hover { color: var(--primary); }

.auth-links { margin-top: 24px; display: flex; justify-content: space-between; font-size: 0.92rem; }
.auth-links a, .text-decoration-none { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.auth-links a:hover, .text-decoration-none:hover { color: var(--primary); }

/* Preloader */
#preloader { position: fixed; inset: 0; background: var(--bg-page); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.4s; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* Responsiveness & Mobile Optimization */
@media (max-width: 991px) {
    .login-card-floating { max-width: 440px; }
    .form-col { padding: 28px 24px 32px; }
    .back-link-fixed {
        top: 16px; left: 16px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    body.auth-page,
    .auth-page body {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 56px 12px 24px !important;
        min-height: 100% !important;
    }
    body:not(.auth-page) {
        padding: 0 !important;
        margin: 0 !important;
    }
    .login-card-single { 
        padding: 20px 16px; 
        margin: 0 auto; 
        border-radius: 20px; 
    }
    .brand-header-link {
        flex-direction: column;
        text-align: center;
        gap: 6px !important;
    }
    .brand-text-wrap {
        text-align: center !important;
    }
    .brand-title-text {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    body {
        padding: 50px 10px 20px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        min-height: 100% !important;
    }
    
    .back-link-fixed {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .login-card-floating,
    .login-card-single {
        border-radius: 20px;
        width: calc(100% - 32px) !important;
        max-width: 440px !important;
        margin: 16px auto !important;
        box-shadow: 0 12px 30px -10px rgba(201, 149, 32, 0.15);
    }

    .form-section-card {
        padding: 14px 14px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .auth-brand-header {
        padding: 22px 18px 14px;
    }

    .brand-logo-img {
        height: 48px;
        margin-bottom: 4px;
    }

    .form-col {
        padding: 20px 18px 26px;
    }

    /* iOS auto-zoom prevention: input font-size >= 16px */
    .form-control, .form-select {
        font-size: 16px !important;
        padding: 11px 14px;
        border-radius: 12px;
    }

    .btn-primary, .btn-success {
        padding: 13px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .auth-tab {
        font-size: 0.88rem;
        padding: 8px 4px !important;
    }
}

/* -------------------------------------------------------------------
   Revamped Direct Signup Component Styles
   ------------------------------------------------------------------- */
.form-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #AA7C11 100%);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    margin-right: 6px;
    flex-shrink: 0;
}

.form-section-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(201, 149, 32, 0.08);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}
.form-section-card:hover, .form-section-card:focus-within {
    border-color: rgba(201, 149, 32, 0.22);
    box-shadow: 0 6px 18px rgba(201, 149, 32, 0.04);
    background: rgba(255, 255, 255, 0.95);
}

.form-section-title-minimal {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-icon-wrap .input-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 5;
    transition: color 0.2s ease;
}
.input-icon-wrap .form-control, .input-icon-wrap .form-select {
    padding-left: 44px;
}
.input-icon-wrap:focus-within .input-icon {
    color: var(--primary);
}

.ajax-response-box {
    margin-top: 10px;
    border-radius: 12px;
}
.ajax-response-box .alert {
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-terms-box {
    background: rgba(248, 250, 252, 0.9);
    border: 1.5px dashed rgba(201, 149, 32, 0.18);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}
.custom-terms-box:hover {
    border-color: var(--primary);
    background: #FFFFFF;
}

.terms-modal-content {
    border-radius: 24px !important;
    border: 1px solid rgba(201, 149, 32, 0.15) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
}
.terms-modal-content .modal-header {
    background: linear-gradient(180deg, rgba(201, 149, 32, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(201, 149, 32, 0.1);
    padding: 20px 24px;
}

/* Compact viewport fitting for login-card-single */
.login-card-single {
    padding: 16px 22px 18px !important;
}

.login-card-single .form-section-card {
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
}

.login-card-single .form-section-title-minimal {
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
}

.login-card-single .form-control, 
.login-card-single .form-select {
    padding: 6px 12px 6px 34px !important;
    font-size: 0.84rem !important;
    height: 36px !important;
    border-radius: 10px !important;
}

.login-card-single .input-icon-wrap .input-icon {
    left: 12px !important;
    font-size: 0.95rem !important;
}

.login-card-single .input-group > .btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    height: 36px !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.login-card-single .form-label {
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
    font-weight: 700 !important;
}

.login-card-single .custom-terms-box {
    padding: 8px 12px !important;
    border-radius: 10px !important;
    gap: 8px !important;
}

.login-card-single .ajax-response-box {
    margin-top: 3px !important;
    font-size: 0.78rem !important;
}

/* ==========================================================================
   Terms & Conditions (TNC) Page Styles - G1 Udaan Design System
   ========================================================================== */
.page-tnc {
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
}

.tnc-shell {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 18px 48px;
    z-index: 1;
}

.tnc-hero {
    position: relative;
    margin: 0 auto 28px;
    padding: 20px 20px 10px;
}

.tnc-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(201, 149, 32, 0.15);
    box-shadow: 0 16px 36px rgba(201, 149, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tnc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tnc-kicker {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tnc-title {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.tnc-subtitle {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
    text-wrap: balance;
}

.tnc-content {
    position: relative;
}

.tnc-content > .card {
    margin-top: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-card) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(201, 149, 32, 0.15) !important;
    box-shadow: var(--shadow-card) !important;
}

.tnc-content .card-header {
    padding: 20px 28px;
    background: linear-gradient(180deg, rgba(201, 149, 32, 0.05) 0%, rgba(255, 255, 255, 0) 100%) !important;
    border-bottom: 1px solid rgba(201, 149, 32, 0.1) !important;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.tnc-content .card-body {
    padding: 28px !important;
}

.tnc-content .card-block1 > p:first-child {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 500;
}

.tnc-content .nav-tabs {
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.tnc-content .nav-tabs .nav-link {
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(201, 149, 32, 0.12);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.tnc-content .nav-tabs .nav-link:hover {
    background: rgba(201, 149, 32, 0.08);
    color: var(--primary);
    transform: translateY(-1px);
}

.tnc-content .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #1565C0 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 20px rgba(201, 149, 32, 0.22);
}

.tnc-content .tab-content {
    padding: 0 !important;
}

.tnc-content .tab-pane h4 {
    margin-bottom: 18px;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.tnc-content .list-group {
    gap: 10px;
    padding-left: 0;
}

.tnc-content .list-group-item {
    margin-bottom: 0;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(201, 149, 32, 0.1) !important;
    color: var(--text-dark);
    font-size: 0.94rem;
    line-height: 1.7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.tnc-content .list-group-item:hover {
    background: #ffffff !important;
    border-color: rgba(201, 149, 32, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 149, 32, 0.08);
}

.tnc-actions {
    display: flex;
    gap: 16px;
    align-items: stretch;
    justify-content: center;
    margin-top: 28px;
}

.tnc-actions .btn {
    min-height: 54px;
    flex: 1 1 0;
    max-width: 280px;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.tnc-action-secondary {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.tnc-action-secondary:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.tnc-action-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1565C0 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(201, 149, 32, 0.25);
}

.tnc-action-primary:hover {
    background: linear-gradient(135deg, #AA7C11 0%, #C99520 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(201, 149, 32, 0.35);
    transform: translateY(-2px);
}

@media all and (max-width: 767px) {
    .tnc-shell {
        padding: 20px 12px 32px;
    }

    .tnc-content .card-header,
    .tnc-content .card-body {
        padding: 20px 16px !important;
    }

    .tnc-content .nav-tabs .nav-link {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .tnc-title {
        font-size: 1.8rem;
    }

    .tnc-subtitle {
        font-size: 0.92rem;
    }
}

@media all and (max-width: 480px) {
    .tnc-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .tnc-actions .btn {
        max-width: 100%;
        width: 100%;
    }
}

/* ==========================================================================
   KrishiX-style page shell — matches the new sign-in page (signup-modern.css)
   Applies to sign-up, dealer sign-up, bulk sign-up and password recovery.
   CSS only: markup and behaviour of those pages are unchanged.
   ========================================================================== */
:root {
    --kx-grad: linear-gradient(135deg, #2F6FD8 0%, #C99520 52%, #0A192F 100%);
    --kx-grad-hover: linear-gradient(135deg, #C99520 0%, #093980 52%, #050D1C 100%);
    --kx-focus: #2F6FD8;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F1F5FD 0%, #E0F2FE 40%, #E7EEFB 75%, #F8FAFC 100%) !important;
}

/* soft colour orbs + fine grid instead of the flat mesh */
.mesh-bg {
    background:
        radial-gradient(circle 420px at 8% 6%, rgba(169, 196, 238, 0.85) 0%, rgba(207, 221, 246, 0) 70%),
        radial-gradient(circle 400px at 94% 96%, rgba(186, 230, 253, 0.85) 0%, rgba(224, 242, 254, 0) 70%),
        radial-gradient(circle 320px at 50% 46%, rgba(199, 210, 254, 0.55) 0%, rgba(224, 231, 255, 0) 70%),
        linear-gradient(135deg, #F1F5FD 0%, #E0F2FE 40%, #E7EEFB 75%, #F8FAFC 100%);
}

.mesh-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* frosted glass card */
.login-card-floating,
.login-card-single {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(226, 232, 240, 0.7);
}

/* logo in a rounded tile */
.card-header-logo,
.auth-brand-header {
    border-bottom: 0 !important;
    background: none;
    padding-top: 30px !important;
}

.brand-logo-img {
    box-sizing: border-box;
    height: 88px !important;
    width: 88px;
    max-width: none;
    padding: 9px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 12px 28px -8px rgba(47, 111, 216, 0.28);
    filter: none;
}

.form-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* field labels: small caps like the sign-in page */
.form-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--kx-focus);
    box-shadow: 0 0 0 4px rgba(47, 111, 216, 0.14);
}

/* gradient primary buttons */
.login-card-single .btn-primary,
.login-card-single .btn-success,
.login-card-floating .btn-primary,
.login-card-floating .btn-success,
.auth-page .btn-primary,
.auth-page .btn-success {
    background: var(--kx-grad);
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px -6px rgba(201, 149, 32, 0.45);
}

.login-card-single .btn-primary:hover,
.login-card-single .btn-success:hover,
.login-card-floating .btn-primary:hover,
.login-card-floating .btn-success:hover,
.auth-page .btn-primary:hover,
.auth-page .btn-success:hover {
    background: var(--kx-grad-hover);
    box-shadow: 0 14px 30px -6px rgba(201, 149, 32, 0.55);
}

.back-link-fixed {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(226, 232, 240, 0.9);
}

@media (max-width: 540px) {
    .login-card-floating,
    .login-card-single {
        border-radius: 22px;
    }
}
