.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
    background:
        radial-gradient(ellipse at 30% 15%, rgba(139, 0, 0, 0.3), transparent 55%),
        radial-gradient(ellipse at 75% 85%, rgba(255, 31, 61, 0.18), transparent 55%);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(23, 14, 17, 0.92);
    border: 1px solid rgba(255, 31, 61, 0.25);
    border-radius: 18px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: rise 0.8s ease both;
}

.auth-title {
    font-family: 'Pirata One', cursive;
    font-size: 2.25rem;
    color: var(--accent);
    text-align: center;
    text-shadow: 0 0 24px rgba(255, 31, 61, 0.4);
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.35rem; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"] {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color-scheme: dark;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 31, 61, 0.15);
}

.password-field { position: relative; }

.password-field input { padding-right: 3rem; }

.toggle-password {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.toggle-password:hover { color: var(--accent); }

.auth-forgot {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    margin: -0.75rem 0 1.35rem;
}

.auth-forgot:hover { color: var(--accent); }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.disclaimer {
    margin-bottom: 1.25rem;
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 10px;
    background: rgba(212, 160, 23, 0.06);
    overflow: hidden;
}

.disclaimer summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.disclaimer summary::-webkit-details-marker { display: none; }

.disclaimer summary::after {
    content: '\25BE';
    transition: transform 0.2s ease;
}

.disclaimer[open] summary::after { transform: rotate(180deg); }

.disclaimer-body {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.auth-submit { width: 100%; justify-content: center; }

.auth-errors {
    background: rgba(255, 31, 61, 0.1);
    border: 1px solid rgba(255, 31, 61, 0.4);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-errors ul { margin: 0; padding-left: 1.1rem; }

.auth-errors li { color: #ff9ba8; font-size: 0.9rem; }

.auth-switch {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.auth-switch a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-card-wide { max-width: 560px; }

.auth-success {
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.4);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-size: 0.9rem;
}

.profile-info {
    margin-bottom: 2rem;
    display: grid;
    gap: 0.75rem;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.95rem;
}

.profile-info-row span:first-child { color: var(--text-dim); }
.profile-info-row span:last-child { font-weight: 600; text-align: right; }

.auth-divider {
    border: none;
    border-top: 1px solid rgba(255, 31, 61, 0.15);
    margin: 2rem 0 1.5rem;
}

.auth-section-title {
    font-family: 'Pirata One', cursive;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
