/* ============================================================
   Rolex Time - member sign-in / join / reset pages (deep green + gold).
   Separate from auth.css, which the admin sign-in keeps for itself.
   ============================================================ */

:root {
    --green-950: #03170f;
    --green-900: #062c20;
    --green-800: #0a3d2d;
    --green-700: #0f5a41;
    --gold-300: #efd48f;
    --gold-400: #e0bb62;
    --gold-500: #c9a24a;
    --gold-600: #a8822f;

    --color-primary: #0f5a41;
    --color-primary-hover: #0a3d2d;
    --color-primary-soft: rgba(15, 90, 65, 0.1);
    --color-on-primary: #ffffff;
    --color-bg: #062c20;
    --color-surface: #ffffff;
    --color-surface-alt: #f3efe3;
    --color-text: #10231b;
    --color-muted: #5f7167;
    --color-border: rgba(16, 35, 27, 0.14);
    --color-error: #b3261e;
    --color-error-bg: rgba(179, 38, 30, 0.09);
    --color-success: #0f7a4f;
    --color-success-bg: rgba(15, 122, 79, 0.11);
    --radius: 14px;
    --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Nunito", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(90% 60% at 50% -10%, rgba(224, 187, 98, 0.28), transparent 60%),
        linear-gradient(170deg, var(--green-800), var(--green-950) 70%);
    color: var(--color-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 28px 22px 24px;
    background: var(--color-surface);
    border-radius: 26px;
    border-top: 5px solid var(--gold-500);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.auth-brand-logo {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(6, 44, 32, 0.35);
}

.auth-brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--green-900);
}

.auth-brand h1 {
    margin: 10px 0 2px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold-600);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-subtitle {
    margin: 0;
    font-size: 0.86rem;
    color: var(--color-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-inline {
    display: inline;
}

.auth-label {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--green-900);
}

.auth-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font: inherit;
}

.auth-input:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.3);
}

.password-field {
    position: relative;
}

.password-field .auth-input {
    padding-right: 46px;
}

.auth-button {
    margin-top: 14px;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--green-700), var(--green-900));
    color: var(--gold-300);
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(6, 44, 32, 0.3);
}

.auth-button:hover {
    background: linear-gradient(180deg, #17795a, var(--green-800));
}

.auth-resend-button {
    border: 0;
    background: none;
    color: var(--green-700);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}

.auth-links {
    margin-top: 12px;
    text-align: center;
    font-size: 0.86rem;
}

.auth-links a,
.auth-card a {
    color: var(--green-700);
    font-weight: 800;
    text-decoration: none;
}

.auth-footnote {
    margin: 18px 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.auth-footnote a {
    color: var(--gold-300);
    font-weight: 800;
    text-decoration: none;
}

.auth-alert {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    border: 1px solid transparent;
}

.auth-alert-error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-color: rgba(179, 38, 30, 0.25);
}

.auth-alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-color: rgba(15, 122, 79, 0.28);
}

.auth-alert-info {
    background: #eef7f2;
    color: var(--green-700);
    border-color: rgba(15, 90, 65, 0.2);
}

.otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-box {
    width: 44px;
    height: 52px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    font-size: 1.3rem;
    font-weight: 800;
}

.auth-card a.auth-button,
a.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-300);
    text-decoration: none;
}
