/* ==========================================================================
   Antigravity Shop Auth Page Stylesheet (auth.css)
   Brand Color: #0d2644 | Secondary Gold: #f8a203 | Container: 1450px
   ========================================================================== */

/* Auth Page Wrapper */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: #f8fafc;
}

/* Auth Top Bar (Desktop Only) */
.auth-top-header {
    width: 100%;
    max-width: 980px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-top-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0d2644;
    font-weight: 800;
    font-size: 15.5px;
    transition: opacity 0.2s ease;
}

.auth-top-logo:hover {
    opacity: 0.85;
}

.auth-top-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.btn-auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.btn-auth-back-home:hover {
    color: #0d2644;
    border-color: #0d2644;
    background: #f1f5f9;
    transform: translateX(2px);
}

/* Main 2-Column Auth Card */
.auth-main-card {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(13, 38, 68, 0.08);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
}

/* ==========================================================================
   RIGHT COLUMN: FORMS AREA
   ========================================================================== */
.auth-form-side {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-header {
    margin-bottom: 24px;
}

.auth-form-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Emblem (Hidden on Desktop) */
.auth-mobile-emblem-wrapper {
    display: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-mobile-emblem-img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(13, 38, 68, 0.15)) !important;
}

/* Segmented Tabs Nav */
.auth-tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 24px;
    gap: 4px;
}

.auth-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-tab-btn:hover {
    color: #0d2644;
}

.auth-tab-btn.active {
    background: #0d2644;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(13, 38, 68, 0.2);
}

/* Form Panes */
.auth-form-pane {
    display: none;
    animation: fadeInAuth 0.25s ease forwards;
}

.auth-form-pane.active {
    display: block;
}

@keyframes fadeInAuth {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inputs & Groups */
.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-input-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-control {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input-control:focus {
    border-color: #0d2644;
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(13, 38, 68, 0.08);
}

.auth-input-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

.auth-toggle-pwd {
    position: absolute;
    left: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-toggle-pwd:hover {
    color: #0d2644;
}

.auth-forgot-link {
    font-size: 12px;
    color: #0d2644;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.auth-extra-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox {
    width: 17px;
    height: 17px;
    accent-color: #0d2644;
    cursor: pointer;
}

.auth-terms-link {
    color: #0d2644;
    font-weight: 700;
    text-decoration: none;
}

.auth-terms-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #0d2644 0%, #1e3a8a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 38, 68, 0.22);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 38, 68, 0.3);
}

.auth-switch-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-switch-link {
    color: #0d2644;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-switch-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* ==========================================================================
   LEFT COLUMN: BRAND BANNER AREA (DESKTOP)
   ========================================================================== */
.auth-banner-side {
    background: linear-gradient(145deg, #0d2644 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.auth-banner-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(248, 162, 3, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.auth-banner-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-banner-logo-wrapper {
    margin-bottom: 18px;
}

.auth-banner-logo-img {
    width: 85px !important;
    height: 85px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25)) !important;
}

.auth-banner-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.auth-banner-text {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    text-align: right;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(248, 162, 3, 0.2);
    color: #f8a203;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.auth-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-feature-text strong {
    font-size: 12.5px;
    color: #ffffff;
    font-weight: 700;
}

.auth-feature-text span {
    font-size: 11px;
    color: #94a3b8;
}

.auth-banner-footer {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

/* ==========================================================================
   MOBILE RESPONSIVE (max-width: 991.98px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .auth-page-wrapper {
        padding: 20px 14px !important;
        justify-content: center !important;
    }

    /* Strictly hide top bar on mobile */
    .auth-top-header {
        display: none !important;
    }

    .auth-main-card {
        grid-template-columns: 1fr !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 25px rgba(13, 38, 68, 0.06) !important;
        max-width: 480px !important;
    }

    .auth-form-side {
        padding: 28px 20px !important;
    }

    .auth-banner-side {
        display: none !important;
    }

    /* Show Mobile Emblem centered with standard 72px */
    .auth-mobile-emblem-wrapper {
        display: flex !important;
        margin-bottom: 14px !important;
    }

    .auth-mobile-emblem-img {
        width: 72px !important;
        height: 72px !important;
    }

    .auth-form-title {
        font-size: 17px !important;
        text-align: center !important;
    }

    .auth-form-subtitle {
        font-size: 12px !important;
        text-align: center !important;
    }
}


/* Mobile Bottom Nav Spacing */
@media (max-width: 991.98px) {
    .auth-page-wrapper {
        padding-top: 24px !important;
        padding-bottom: 90px !important; /* Space for Bottom Nav */
    }
}
