/* Standalone auth / error pages (Layout = null). Uses tokens from app-themes.css — link that file first. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-shell-body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--lighter-bg, #faf9f8);
    color: var(--text-primary, #323130);
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(88px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.auth-shell-card {
    width: min(460px, 100%);
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border-color, #d2d0ce);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(20, 83, 45, 0.12);
    padding: clamp(18px, 5vw, 28px);
}

.auth-shell-card--wide {
    width: min(520px, 100%);
}

.auth-shell-brand {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.auth-shell-brand > div:last-child {
    min-width: 0;
    flex: 1 1 160px;
}

.auth-shell-logo {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--header-gradient, linear-gradient(135deg, #14532d, #22c55e));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.auth-shell-tagline {
    font-size: 12px;
    color: var(--text-secondary, #605e5c);
}

.auth-shell-h1 {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    margin: 8px 0 6px;
    line-height: 1.25;
}

.auth-shell-p {
    margin: 0 0 18px;
    color: var(--text-secondary, #605e5c);
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.45;
}

.auth-shell-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    background: #fff;
    color: var(--text-primary, #323130);
    border: 1px solid var(--border-color, #cfd9e7);
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
}

.auth-shell-btn-row:hover {
    background: #f8fafc;
    border-color: #b8c6db;
}

.auth-shell-btn-row:focus-visible {
    outline: 2px solid var(--primary-color, #166534);
    outline-offset: 2px;
}

.auth-shell-foot {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
}

.auth-shell-warn {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.auth-shell-btn-solid {
    display: inline-block;
    background: var(--primary-color, #166534);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.auth-shell-btn-solid:hover {
    background: var(--primary-dark, #14532d);
    color: #fff;
}

@media (min-width: 400px) {
    .auth-shell-btn-row {
        width: auto;
        min-width: 220px;
    }
}

/* OAuth icon dots (login) */
.auth-shell-oauth-g {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
}

.auth-shell-oauth-ms {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: conic-gradient(#f25022 0 25%, #7fba00 0 50%, #00a4ef 0 75%, #ffb900 0);
}

.auth-shell-oauth-fb {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Support request page */
.auth-support-detail {
    background: var(--lighter-bg, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.auth-support-detail dt {
    color: var(--text-secondary, #64748b);
    font-size: 12px;
    margin-top: 8px;
}

.auth-support-detail dt:first-child {
    margin-top: 0;
}

.auth-support-detail dd {
    margin: 2px 0 0;
    font-weight: 600;
    word-break: break-word;
    color: var(--text-primary, #0f172a);
}

.auth-support-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.auth-support-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: var(--primary-color, #166534);
    color: #fff;
}

.auth-support-btn-primary:hover:not(:disabled) {
    background: var(--primary-dark, #14532d);
}

.auth-support-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.auth-support-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text-primary, #323130);
    border: 1px solid var(--border-color, #cfd9e7);
}

.auth-support-btn-secondary:hover {
    background: #f8fafc;
}

.auth-support-muted {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    margin-top: 14px;
    line-height: 1.4;
}

.auth-support-muted--tight {
    margin-top: 0;
}

.auth-support-success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: var(--primary-color, #166534);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Club picker (/auth/select-club) */
.auth-club-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.auth-club-list > li[hidden] {
    display: none;
}

.auth-club-search {
    margin-bottom: 12px;
}

.auth-club-search-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--border-color, #cfd9e7);
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    color: var(--text-primary, #323130);
    background: #fff;
}

.auth-club-search-input:focus {
    outline: 2px solid var(--primary-color, #166534);
    outline-offset: 1px;
}

.auth-club-search-hint:not(:empty) {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary, #605e5c);
}

.auth-club-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #cfd9e7);
    border-radius: 10px;
    background: #fff;
    color: var(--text-primary, #323130);
    text-decoration: none;
    font-weight: 600;
}

.auth-club-item:hover {
    background: #f8fafc;
    border-color: #b8c6db;
}

.auth-club-item:focus-visible {
    outline: 2px solid var(--primary-color, #166534);
    outline-offset: 2px;
}

.auth-club-item.is-current {
    border-color: var(--primary-color, #166534);
}

.auth-club-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.auth-club-badge {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #166534);
    background: #f0fdf4;
    border-radius: 999px;
    padding: 3px 10px;
}

.auth-shell-foot a {
    color: var(--primary-color, #166534);
}

/* Primary choice in a stacked pair of row buttons (club switch confirmation). */
.auth-shell-btn-row.auth-shell-btn-primary {
    background: var(--primary-color, #166534);
    border-color: var(--primary-color, #166534);
    color: #fff;
}

.auth-shell-btn-row.auth-shell-btn-primary:hover {
    background: var(--primary-dark, #14532d);
    border-color: var(--primary-dark, #14532d);
}
