/* =====================================================================
   Aaradhya Jewellers - Login / Register shared styles
   Place this file at: MyCustom/auth.css
   Each page sets its own background image via --auth-bg (see the page).
   ===================================================================== */

:root {
    --auth-emerald-900: #021a0e;
    --auth-emerald-800: #043a0b;
    --auth-emerald-700: #084a05;
    --auth-gold-300: #f3d98b;
    --auth-gold-500: #d4af37;
    --auth-gold-700: #a8832a;
    --auth-ink: #1d1a14;
    --auth-muted: #6b6558;
    --auth-bg: url('../images/jewellery-bg.svg');
}

/* ---------- Page base ---------- */
html, body.auth-page {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body.auth-page {
    font-family: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #fff;
    background: var(--auth-emerald-900);
}

/* ---------- Background image ---------- */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(160deg, rgba(2, 26, 14, .45) 0%, rgba(8, 74, 5, .15) 55%, rgba(2, 26, 14, .55) 100%),
        var(--auth-bg) center / cover no-repeat,
        var(--auth-emerald-900);
}

/* ---------- Header ---------- */
.auth-page .header > .navbar {
    background: linear-gradient(180deg, var(--auth-emerald-700) 0%, var(--auth-emerald-800) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, .45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    border-radius: 0;
    padding-top: calc(env(safe-area-inset-top) + var(--bs-navbar-padding-y));
    z-index: 1030;
}

.auth-page .navbar-brand img {
    max-height: 44px;
    width: auto;
}

/* ---------- Main layout ---------- */
.auth-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top) + 84px) 16px 32px;
}

/* time + temperature strip */
.auth-topinfo {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 8px;
    color: #fff;
}

.auth-topinfo .display-3 {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 300;
}

.auth-topinfo .lead {
    font-size: clamp(.9rem, 2.4vw, 1.1rem);
    opacity: .85;
}

.auth-topinfo .tempimage {
    height: 1.1em;
    width: auto;
}

.auth-topinfo .dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, .35);
}

/* ---------- Card ---------- */
.auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 2.25rem 2rem 1.75rem;
    border-radius: 26px;
    background: rgba(4, 22, 12, .58);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(212, 175, 55, .40);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    animation: auth-rise .55s ease-out both;
}

.auth-card--wide {
    max-width: 700px;
}

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card { animation: none; }
    .btn-auth, .btn-auth:hover { transition: none; transform: none; }
}

.auth-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: .01em;
    margin: 0 0 .35rem;
    color: var(--auth-gold-300);
    text-align: center;
}

.auth-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin: .6rem auto 0;
    background: linear-gradient(90deg, transparent, var(--auth-gold-500), transparent);
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 1.6rem;
    font-size: .98rem;
    line-height: 1.5;
}

/* ---------- Form fields ---------- */
.auth-page .auth-field {
    margin-bottom: .9rem;
}

.auth-page .auth-field .input-group {
    flex-wrap: nowrap;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    transition: box-shadow .2s ease;
}

.auth-page .auth-field .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .55), 0 2px 10px rgba(0, 0, 0, .18);
}

.auth-page .auth-field .input-group-text {
    background: #fff;
    border: 0;
    color: var(--auth-emerald-700);
    font-size: 1.15rem;
    padding: 0 .35rem 0 1rem;
}

.auth-page .auth-field .input-group-text:first-child {
    border-radius: 14px 0 0 14px;
}

.auth-page .auth-field .input-group-text:last-child {
    border-radius: 0 14px 14px 0;
    color: var(--auth-muted);
    padding: 0 1rem 0 .35rem;
    cursor: pointer;
}

.auth-page .auth-field .form-floating > .form-control,
.auth-page .auth-field .form-floating > .form-select {
    background-color: #fff;
    color: var(--auth-ink);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: calc(3.5rem + 2px);
}

.auth-page .auth-field .form-floating:last-child > .form-control,
.auth-page .auth-field .form-floating:last-child > .form-select {
    border-radius: 0 14px 14px 0;
}

.auth-page .auth-field .form-floating > label {
    color: var(--auth-muted);
    padding-left: .6rem;
}

.auth-page .auth-field .form-floating > .form-control:focus ~ label,
.auth-page .auth-field .form-floating > .form-control:not(:placeholder-shown) ~ label,
.auth-page .auth-field .form-floating > .form-select ~ label {
    color: var(--auth-emerald-700);
}

.auth-page .auth-field .form-control:focus,
.auth-page .auth-field .form-select:focus {
    outline: none;
    box-shadow: none;
}

/* ---------- Links ---------- */
.auth-links {
    text-align: center;
    margin: 1.1rem 0 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .8);
}

.auth-links p {
    margin: 0 0 .4rem;
}

.auth-page .auth-links a,
.auth-page .auth-forgot a {
    color: var(--auth-gold-300);
    text-decoration: none;
    border-bottom: 1px solid rgba(243, 217, 139, .35);
    transition: color .15s ease, border-color .15s ease;
}

.auth-page .auth-links a:hover,
.auth-page .auth-forgot a:hover {
    color: #fff;
    border-color: #fff;
}

.auth-page .auth-links a:focus-visible,
.auth-page .auth-forgot a:focus-visible {
    outline: 2px solid var(--auth-gold-300);
    outline-offset: 3px;
    border-radius: 4px;
}

.auth-forgot {
    text-align: right;
    margin: -.1rem 0 1.1rem;
    font-size: .92rem;
}

/* ---------- Button ---------- */
.auth-page .btn-auth {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: .9rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #2a1d00;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--auth-gold-300) 0%, var(--auth-gold-500) 55%, var(--auth-gold-700) 100%);
    box-shadow: 0 10px 22px rgba(168, 131, 42, .38);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.auth-page .btn-auth:hover {
    color: #2a1d00;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 26px rgba(168, 131, 42, .46);
}

.auth-page .btn-auth:active {
    transform: translateY(0);
}

.auth-page .btn-auth:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ---------- Sponsor name (register) ---------- */
.auth-sponsor-name {
    margin: -.4rem 0 .9rem;
    color: var(--auth-gold-300);
    font-size: .92rem;
    text-align: left;
}

.auth-sponsor-name:empty {
    display: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    .auth-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-card {
        padding: 1.75rem 1.25rem 1.4rem;
        border-radius: 22px;
    }
}
