/* Login / signup / account pages. Uses the site's navy and gold. */
.auth-page {
    max-width: 460px;
    margin: 0 auto;
    padding: 0 20px 70px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-title {
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    color: #333;
    margin: 40px 0 24px;
}

.auth-card {
    background: #0F2037;
    color: #fff;
    border-top: 4px solid #FFC300;
    border-radius: 10px;
    padding: 28px 28px 24px;
    box-shadow: 0 6px 22px rgba(15, 32, 55, 0.25);
}

.auth-card label {
    display: block;
    margin: 16px 0 6px;
    font-size: 14px;
    font-weight: 600;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #0F2037;
    background: #fff;
    border: 1px solid #324A63;
    border-radius: 8px;
}

.auth-card input:focus-visible,
.auth-button:focus-visible,
.auth-switch a:focus-visible {
    outline: 3px solid #FFC300;
    outline-offset: 2px;
}

.auth-hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: #b9c6d6;
}

.auth-button {
    width: 100%;
    margin-top: 24px;
    padding: 13px;
    font-size: 16px;
    font-weight: 800;
    color: #0F2037;
    background: linear-gradient(90deg, #FFC300, #ffb700);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.auth-button:hover { filter: brightness(1.06); }

.auth-button-quiet {
    color: #fff;
    background: transparent;
    border: 1px solid #324A63;
    margin-top: 8px;
}

.auth-button-quiet:hover { background: #324A63; filter: none; }

.auth-errors {
    background: #3a1d24;
    border: 1px solid #e5707e;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 4px;
    color: #ffd7dc;
    font-size: 14px;
}

.auth-errors p { margin: 4px 0; }

.auth-switch {
    margin: 20px 0 0;
    text-align: center;
    font-size: 14px;
    color: #b9c6d6;
}

.auth-switch a { color: #FFC300; font-weight: 600; }

.auth-welcome { margin: 0 0 8px; font-size: 18px; }

.auth-details { margin: 12px 0 20px; }
.auth-details dt { font-size: 13px; color: #b9c6d6; margin-top: 12px; }
.auth-details dd { margin: 2px 0 0; font-size: 16px; word-break: break-word; }

/* Notices, link-style button, members page */
.auth-notice {
    background: #1b3a5c;
    border: 1px solid #FFC300;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 8px 0 4px;
    color: #fff;
    font-size: 14px;
}
.auth-notice p { margin: 4px 0; }

.auth-button-link {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.auth-page:has(.auth-card-wide) { max-width: 860px; }

.member-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    padding: 14px 0;
    border-top: 1px solid #324A63;
}
.member-who { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.member-who span { font-size: 13px; color: #b9c6d6; }
.member-self { font-size: 14px; color: #b9c6d6; }
.member-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #b9c6d6; }
.member-field select {
    padding: 9px;
    font-size: 15px;
    color: #0F2037;
    background: #fff;
    border: 1px solid #324A63;
    border-radius: 8px;
}
.member-field select:focus-visible,
.member-save:focus-visible { outline: 3px solid #FFC300; outline-offset: 2px; }
.member-save {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 800;
    color: #0F2037;
    background: #FFC300;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Bot trap: hidden from people, visible to scripts */
.auth-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .auth-title { font-size: 32px; }
    .auth-card { padding: 22px 18px; }
}
