﻿.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 60px;
  padding-bottom: 40px;
}

.welcome-page li {
  list-style: none;
  padding: 4px;
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}
.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}
.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}
.grants-page .card label {
  font-weight: bold;
}

/* =====================================================
   Auth pages (2026-07 polish)
   NOTE: site.scss is out of sync with this file (the brand
   button block above only ever lived in site.css) — edit
   site.css only for auth-related changes, do not touch site.scss.
   ===================================================== */

:root {
    --auth-green: #1C4932;
    --auth-green-deep: #12331F;
    --auth-accent: #D4AF4A;   /* crown gold — the RELM Golf logo's accent (was the old brand's yellow #FCE300) */
    --auth-danger: #BA0C2F;
    --auth-surface: #F6F5F0;
    --auth-card: #FFFFFF;
    --auth-ink: #1E2B24;
    --auth-muted: #6B7671;
}

/* Header logo — the same box as the Web navbar's .navbar-brand-logo (max 90px tall, 260px wide), so the
   ~4:1 RELM Golf wordmark renders 260x64 on both hosts. It has to be a class: this host's CSP
   (default-src 'self', no style-src) silently drops inline style attributes. */
.identity-nav-logo {
    display: block;
    max-height: 90px;
    max-width: 260px;
    width: auto;
    height: auto;
}

.identity-nav-back {
    color: var(--auth-green) !important;
    font-weight: 600;
}

body:has(.auth-page) {
    background-color: var(--auth-surface);
}

.auth-page {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--auth-card);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(18, 51, 31, 0.12), 0 2px 8px rgba(18, 51, 31, 0.08);
    overflow: hidden;
}

.auth-card-band {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--auth-green);
    border-bottom: 3px solid var(--auth-accent);
}

.auth-card-band-logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .auth-card-band-logo img {
        max-width: 32px;
        max-height: 32px;
    }

.auth-card-band-name {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0;
}

.auth-card-body {
    padding: 1.75rem 1.5rem 2rem;
}

    .auth-card-body h1,
    .auth-card-body h2 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--auth-ink);
        margin-bottom: 1.25rem;
    }

    .auth-card-body label {
        color: var(--auth-ink);
        font-weight: 500;
    }

    .auth-card-body .text-danger {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.85rem;
    }

    .auth-card-body :is(a, button, input, select):focus-visible {
        outline: 2px solid var(--auth-accent);
        outline-offset: 2px;
    }

/* Show/hide eye on password boxes (password-toggle.js). */
.password-field {
    position: relative;
}

    .password-field input[data-password-toggle] {
        padding-right: 3rem;
    }

    /* Edge draws its own reveal eye on password boxes; one eye is enough. */
    .password-field input[data-password-toggle]::-ms-reveal {
        display: none;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

    .password-toggle:hover,
    .password-toggle[aria-pressed="true"] {
        color: var(--auth-green);
    }

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

    .auth-links a {
        color: var(--auth-green);
        text-decoration: none;
    }

        .auth-links a:hover, .auth-links a:focus-visible {
            text-decoration: underline;
        }

.auth-footnote {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

    .auth-footnote a {
        color: var(--auth-green);
        font-weight: 600;
    }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: var(--auth-muted);
    font-size: 0.85rem;
}

    .auth-divider::before, .auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #E4E1D8;
    }

.auth-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(28, 73, 50, 0.08);
    color: var(--auth-green);
}

    .auth-icon svg {
        width: 24px;
        height: 24px;
    }

    .auth-icon.auth-icon-danger {
        background-color: rgba(186, 12, 47, 0.08);
        color: var(--auth-danger);
    }

/* Restyled brand buttons — !important guards preserved: the
   captcha widget's injected script tries to restyle these. */
.btn-login,
.btn-login-register {
    color: white;
    background-color: var(--auth-green);
    border-color: var(--auth-green);
    border-radius: 0.375rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    font-weight: 600;
}

    .btn-login:hover, .btn-login:focus,
    .btn-login-register:hover, .btn-login-register:focus {
        color: white;
        background-color: var(--auth-green-deep);
        border-color: var(--auth-green-deep);
        box-shadow: 0 0 0 0.15rem var(--auth-accent) !important;
        border-radius: 0.375rem !important;
    }

/* Demoted from a filled yellow button to a quiet outline —
   keeps the red accent for recognizability, drops the fill. */
.btn-cancel {
    color: var(--auth-danger);
    background-color: transparent;
    border: 1px solid var(--auth-danger);
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

    .btn-cancel:hover, .btn-cancel:focus {
        color: white;
        background-color: var(--auth-danger);
        border-color: var(--auth-danger);
        box-shadow: 0 0 0 0.15rem var(--auth-accent) !important;
    }

@media (max-width: 480px) {
    .auth-page {
        padding: 1.25rem 0.75rem 2rem;
    }

    .auth-card {
        max-width: 100%;
        border-radius: 8px;
    }

    .auth-card-band {
        flex-wrap: wrap;
        padding: 1rem 1.25rem;
    }
}

/* App mode (#19): pages reached from the RELM Golf app. No header (_Layout drops it), the app's green behind the card,
   and the card fills the width of the phone. */
body.app-mode {
    background-color: var(--auth-green);
}

    body.app-mode > .container {
        max-width: none;
        padding: 0;
    }

    body.app-mode main {
        padding-bottom: 0 !important;
    }

    body.app-mode .auth-page {
        padding: 0;
    }

    body.app-mode .auth-card {
        max-width: none;
        border-radius: 0;
        box-shadow: none;
    }

@media (prefers-reduced-motion: reduce) {
    .btn-login, .btn-login-register, .btn-cancel {
        transition: none;
    }
}
