/* Auth screens */

.auth-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 96px;
}

.auth-card {
    width: min(100%, 430px);
    padding: 36px;
    cursor: default;
}

.auth-card-register {
    width: min(100%, 500px);
}

.auth-card:hover {
    transform: none;
    border-color: rgba(199, 164, 74, 0.22);
    box-shadow: var(--shadow-elevated);
}

.auth-card:hover::after {
    opacity: 0.7;
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #ef4444;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9em;
    text-align: center;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: #86efac;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9em;
    text-align: center;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 168px;
    height: auto;
    display: inline-block;
}

.auth-heading {
    text-align: center;
    margin-bottom: 1.8rem;
}

.auth-title {
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--accent-gold);
    font-size: 1.65rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

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

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    min-width: 0;
}

.auth-checkbox-label input {
    accent-color: var(--accent-gold);
}

.auth-terms {
    margin: 0.25rem 0;
}

.auth-terms .auth-checkbox-label {
    align-items: flex-start;
    gap: 0.8rem;
}

.auth-terms input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.auth-terms span {
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-link {
    color: var(--accent-gold);
    text-decoration: none;
    white-space: nowrap;
}

.auth-link:hover {
    color: #d8bd70;
}

.auth-submit-btn,
.auth-secondary-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-submit-btn {
    border: 1px solid rgba(199, 164, 74, 0.36);
    box-shadow: 0 8px 24px rgba(199, 164, 74, 0.22);
}

.auth-submit-btn .icon,
.auth-secondary-btn .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.auth-submit-btn:hover .icon {
    transform: translateX(3px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.2rem 0;
    color: var(--text-muted, rgba(224, 230, 235, 0.58));
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(199, 164, 74, 0.18);
}

.auth-google-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-primary);
    background: rgba(245, 247, 250, 0.07);
    border: 1px solid rgba(199, 164, 74, 0.22);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-google-btn:hover {
    color: var(--text-primary);
    background: rgba(245, 247, 250, 0.11);
    border-color: rgba(199, 164, 74, 0.38);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.auth-google-mark {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #1a73e8;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.auth-secondary-wrap {
    margin-top: 1rem;
}

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

.auth-footer p {
    margin: 0;
}

.auth-footer a {
    font-weight: 700;
}

.auth-secondary-btn {
    padding: 14px 18px !important;
    font-size: 0.84rem !important;
    color: var(--text-primary) !important;
    background: rgba(20, 30, 42, 0.52) !important;
    border: 1px solid rgba(199, 164, 74, 0.24);
    box-shadow: none !important;
    text-align: center;
    letter-spacing: 0.04em;
}

.auth-secondary-btn:hover {
    transform: translateY(-1px);
    background: rgba(199, 164, 74, 0.1) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 768px) {
    .auth-shell {
        align-items: flex-start;
        padding: 118px 18px 112px;
    }

    .auth-card {
        padding: 30px 22px 28px;
        border-radius: 16px;
    }

    .auth-logo {
        width: 150px;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .auth-link {
        white-space: normal;
    }

    .auth-secondary-btn {
        min-height: 48px;
        font-size: 0.78rem !important;
        line-height: 1.25;
        letter-spacing: 0.035em;
    }

    .auth-google-btn {
        font-size: 0.86rem;
    }
}
