/* Shared styles for the anonymous pages (LoginLayout): the language toggle the layout renders, the
   link-styled button the forgot-password modal uses for Cancel, and the "Password updated" banner.
   The login card itself is styled by the scoped Pages/Security/Login.razor.css ("Version A – Warm
   dark", 2026-10-22); the old global card / photo / waves rules went with it. */

/* ── Anonymous-layout language toggle ─────────────────────────────── */
/* Fixed rather than in-flow: the login card is vertically centred in a
   100vh flex container, and an in-flow bar above it would push it off-centre. */
.login-lang-bar {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 10;
}

.login-lang-btn {
    background: rgba(34, 34, 34, 0.85);
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.login-lang-btn:hover {
    background: rgba(42, 42, 42, 0.95);
    border-color: #F2B735;
}

.login-lang-btn .lang-badge {
    color: #F2B735;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.login-lang-btn:focus-visible {
    outline: 2px solid #F2B735;
    outline-offset: 2px;
}

/* ── Forgot password link (the modal's Cancel) ────────────────────── */
.yacht-forgot-link {
    background: none;
    border: none;
    padding: 0;
    color: #F2B735;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.yacht-forgot-link:hover {
    color: #ffc95a;
}

.yacht-forgot-link:focus-visible {
    outline: 2px solid #F2B735;
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── "Password updated" banner ────────────────────────────────────────────
   Shown on the login card when the emailed link was used in a DIFFERENT
   browser and the server woke this tab (PasswordResetSignal). Success green
   rather than the card's amber, so it reads as a result and not as another
   thing to fill in. */
.yacht-reset-done {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(76, 175, 121, 0.34);
    border-radius: 10px;
    background: rgba(76, 175, 121, 0.10);
    color: #8FD3AE;
    font-size: 0.83rem;
    line-height: 1.45;
}

    .yacht-reset-done i {
        margin-top: 0.14rem;
        font-size: 0.95rem;
    }
