/* Damp.Online — Auth pages stylesheet
   Tokens lifted from src/Damp.Web/Styles/input.css to keep the visual
   language consistent with the Blazor client. */

:root {
    /* Surfaces */
    --color-surface: #06060a;
    --color-raised: #0c0c10;
    --color-card: #121216;
    --color-elevated: #1a1a20;
    --color-hover: #24242c;

    /* Accents */
    --color-gold: #d4a843;
    --color-gold-dark: #c49a38;
    --color-teal: #2dd4bf;
    --color-danger: #ef4444;

    /* Text */
    --color-heading: #ffffff;
    --color-body: #d4cfc4;
    --color-secondary: #8a8880;
    --color-muted: #5c5848;

    /* Borders */
    --color-border-subtle: rgba(255, 255, 255, 0.04);
    --color-border-interactive: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Oxanium', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-surface);
    color: var(--color-body);
    font-family: var(--font-body);
    font-weight: 400;
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-raised);
    border: 1px solid var(--color-border-subtle);
    border-radius: 2px;
    padding: 2.25rem 1.75rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-surface);
}

.auth-brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--color-gold);
    text-transform: uppercase;
}

.auth-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--color-secondary);
    font-size: 13px;
    margin-bottom: 1.5rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin-bottom: 0.375rem;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--color-card);
    border: 1px solid var(--color-border-interactive);
    border-radius: 2px;
    color: var(--color-body);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 150ms ease;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.auth-field input:focus {
    border-color: var(--color-gold);
}

.auth-field .field-error {
    display: block;
    color: var(--color-danger);
    font-size: 12px;
    margin-top: 0.375rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-size: 13px;
    margin-bottom: 1.25rem;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.auth-summary {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-danger);
    border-radius: 2px;
    padding: 0.625rem 0.75rem;
    font-size: 12px;
    margin-bottom: 1rem;
}

.auth-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1.5rem;
    background: var(--color-gold);
    color: var(--color-surface);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.auth-button:hover {
    background: var(--color-gold-dark);
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 150ms ease;
}

.auth-button-secondary:hover {
    background: rgba(212, 168, 67, 0.05);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border-subtle);
}

.auth-divider span {
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-footer {
    text-align: center;
    color: var(--color-secondary);
    font-size: 13px;
    margin-top: 1.25rem;
}

.auth-footer a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.auth-text-center {
    text-align: center;
}

/* Navigation bar (authenticated pages only) */
.auth-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 48px;
    background: var(--color-raised);
    border-bottom: 1px solid var(--color-border-subtle);
    font-family: var(--font-body);
    font-size: 13px;
}

.auth-nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--color-gold);
    text-decoration: none;
}

.auth-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 150ms ease;
}

.auth-nav-link:hover {
    color: var(--color-body);
}

.auth-nav-user {
    color: var(--color-gold);
}

.auth-nav-signout {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    padding: 0;
}

body:has(.auth-nav) .auth-shell {
    padding-top: 64px;
}

/* Settings stub */
.auth-identity {
    background: var(--color-card);
    border: 1px solid var(--color-border-interactive);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    color: var(--color-body);
    font-size: 13px;
    margin-bottom: 1.25rem;
}

.auth-identity strong {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Password validation hints */
.password-hints {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--color-card);
    border: 1px solid var(--color-border-interactive);
    border-radius: 2px;
    font-size: 12px;
}

.hint-pass {
    color: var(--color-teal);
}

.hint-fail {
    color: var(--color-muted);
}
