/* ============================================================
   AUTH MODAL — shared across /home and /profile-report
   Loaded directly so any page hosting the auth modal markup
   gets the styling without pulling in homepage.css.
   ============================================================ */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    /* Centre the modal within the visible content area (post-nav).
       The 186px-wide side-nav is fixed at the left on desktop, so an
       inset-0 overlay would centre the modal over the WHOLE viewport
       (visually off-centre to the user). Pad the overlay so the
       modal centres in the area users actually look at. */
    padding-left: 186px;
    box-sizing: border-box;
}
.auth-overlay.active { display: flex; }

@media (max-width: 768px) {
    /* Mobile: side-nav becomes a bottom tab bar, no left chrome. */
    .auth-overlay { padding-left: 0; }
}

.auth-modal {
    position: relative;
    /* Use --lumi-bg-elevated (20% — the modal/dropdown tier in the
       Material-style elevation scale) so the modal reads as floating
       above the body, not a black hole. */
    background: var(--lumi-bg-elevated, #494643);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 32px 32px 26px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
    animation: auth-modal-in 0.2s ease-out;
    color: #F0EDE8;
    font-family: 'Satoshi', sans-serif;
}

@keyframes auth-modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal__close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    color: #6B6560;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    transition: color 0.15s;
}
.auth-modal__close:hover { color: #E8E4DF; }

.auth-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #F0EDE8;
}
.auth-modal__sub {
    font-size: 15px;
    line-height: 1.45;
    color: rgba(240, 237, 232, 0.88);
    margin: 0 0 20px;
}

.auth-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hp-auth-google {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 44px;
}
.hp-auth-google > div { width: 100% !important; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 14px;
}
.auth-divider__line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.auth-divider__text {
    font-size: 11px;
    color: #4A4744;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.auth-field { margin-bottom: 12px; }
.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(240, 237, 232, 0.78);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.auth-input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    color: #F0EDE8;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.auth-input:hover { border-color: rgba(255, 255, 255, 0.16); }
.auth-input:focus { border-color: rgba(212, 164, 75, 0.55); background: rgba(0, 0, 0, 0.30); }
.auth-input::placeholder { color: rgba(240, 237, 232, 0.42); }

.auth-error {
    font-size: 12px;
    color: #CF6E6E;
    margin: 4px 0 8px;
    min-height: 18px;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    background: #D4A44B;
    color: #1a1918;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 46px;
}
.auth-submit:hover { background: #E0B35A; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Footer hint -- the same submit button creates an account when the
   email isn't already registered, so we expose that explicitly. */
.auth-modal__footer {
    margin: 16px 0 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(240, 237, 232, 0.88);
    font-family: 'Satoshi', sans-serif;
}
.auth-modal__footer > span { display: inline; }
.auth-modal__footer-link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: var(--lumi-amber-200, #E8C06A);
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}
.auth-modal__footer-link:hover { color: #F0CB7C; text-decoration: underline; }

@media (max-width: 480px) {
    .auth-modal {
        box-sizing: border-box;
        width: auto;
        max-width: calc(100vw - 32px);
        margin: 16px;
        padding: 24px 20px 20px;
        border-radius: 12px;
    }
    .auth-modal__title { font-size: 20px; }
    .auth-modal__sub { font-size: 14px; }
    .auth-modal__footer { font-size: 14px; }
    .auth-submit { padding: 11px 14px; font-size: 14px; }
    .hp-auth-google > div { width: 100% !important; max-width: 100%; }
}
