/* ================================================================
   auth.css — Login & Registration pages (shared auth-* classes)
   Loaded by: security/login.html.twig, security/register.html.twig
   ================================================================ */

/* ── Design tokens ── */
:root {
    --rust: #C94B6D;
    --rust-lt: #E06882;
    --rust-bg: rgba(201,75,109,0.08);
    --sand: #EEF0F8;
    --sand-mid: #DFE2F2;
    --brown-dk: #1A2E42;
    --brown: #3D5A72;
    --brown-lt: #8AA4B8;
    --white: #FDFAFF;
}

/* ── Auth page layout ── */
.auth-page {
    min-height: calc(100vh - 120px);
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}
.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(26,46,66,0.10);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}
.auth-card-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--rust) 0%, #E88FA8 100%);
}
.auth-card-body {
    padding: 36px 40px 32px;
}
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rust-bg);
    color: var(--rust);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    border-radius: 20px;
    padding: 4px 10px;
    margin-bottom: 14px;
}
.auth-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--brown-dk);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    line-height: 1.2;
}
.auth-subtitle {
    font-size: 0.9rem;
    color: var(--brown-lt);
    margin-bottom: 28px;
}

/* ── Inputs ── */
.auth-card .form-floating > .form-control {
    background: var(--sand);
    border: 1.5px solid var(--sand-mid);
    border-radius: 10px;
    color: var(--brown-dk);
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card .form-floating > .form-control:focus {
    border-color: var(--rust);
    box-shadow: 0 0 0 3px var(--rust-bg);
    background: var(--white);
}
.auth-card .form-floating > label {
    color: var(--brown-lt);
    font-size: 0.88rem;
}

/* ── Field errors (register) ── */
.auth-card .form-error,
.auth-card ul.form-error li {
    font-size: 0.8rem;
    color: var(--rust);
    margin: -8px 0 8px 2px;
    list-style: none;
    padding: 0;
}

/* ── Agree to terms (register) ── */
.auth-agree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    font-size: 0.85rem;
    color: var(--brown);
}
.auth-agree-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--rust);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Primary button ── */
.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--rust);
    color: #fff;
    font-weight: 700;
    font-size: 0.97rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.2px;
}
.auth-btn-primary:hover {
    background: var(--rust-lt);
    transform: translateY(-1px);
}

/* ── Forgot link ── */
.auth-forgot {
    font-size: 0.82rem;
    color: var(--brown-lt);
    text-decoration: none;
    transition: color 0.12s;
}
.auth-forgot:hover { color: var(--rust); }

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    color: var(--brown-lt);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sand-mid);
}

/* ── OAuth buttons ── */
.auth-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 10px 16px;
    background: var(--white);
    border: 1.5px solid var(--sand-mid);
    border-radius: 10px;
    color: var(--brown-dk);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
}
.auth-oauth-btn:hover {
    background: var(--sand);
    border-color: var(--brown-lt);
}

/* ── OAuth brand icon colors ── */
.auth-oauth-icon--google   { color: #EA4335; }
.auth-oauth-icon--facebook { color: #1877F2; }
.auth-oauth-icon--github   { color: #24292f; }

/* ── Alert (error / beta notice) ── */
.auth-alert {
    background: rgba(201,75,109,0.1);
    color: #C94B6D;
    border: 1.5px solid rgba(201,75,109,0.2);
    font-size: 0.87rem;
}
.auth-beta-notice {
    background: rgba(200,168,60,0.1);
    border: 1.5px solid rgba(200,168,60,0.3);
    font-size: 0.9rem;
    color: #7A6020;
}
.auth-beta-notice-icon {
    color: #C8A83C;
}

/* ── Footer ── */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sand-mid);
    font-size: 0.83rem;
    color: var(--brown-lt);
}
.auth-footer-text a {
    color: var(--rust);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer-text a:hover { text-decoration: underline; }

.auth-policy-text {
    font-size: 0.78rem;
    color: var(--brown-lt);
    line-height: 1.5;
    margin-bottom: 10px;
}
.auth-policy-text a { color: var(--rust); text-decoration: none; }
.auth-policy-text a:hover { text-decoration: underline; }
