/* ============================================================
   TÊNIS 360 GRAUS — AUTH PAGES
   ============================================================ */

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

/* ============================================================
   LAYOUT DIVIDIDO
   ============================================================ */

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ============================================================
   PAINEL ESQUERDO — DECORATIVO
   ============================================================ */

.auth-panel {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-10);
    min-height: 100vh;
}

[data-theme="dark"] .auth-panel {
    background: linear-gradient(160deg, #0d1a10 0%, var(--color-primary-dark) 100%);
    border-right: 1px solid var(--color-border);
}

.auth-panel__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: white;
    letter-spacing: 0.05em;
    text-decoration: none;
    z-index: 1;
    position: relative;
}

.auth-panel__logo .navbar__logo-icon {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}

.auth-panel__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel__content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: white;
    line-height: 0.95;
    margin-bottom: var(--space-6);
}

.auth-panel__content p {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: var(--space-8);
}

.auth-panel__benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.auth-panel__benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(255,255,255,0.85);
    font-size: var(--text-sm);
    font-weight: 500;
}

.auth-panel__benefits svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* Quadra decorativa */
.auth-panel__court {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
}

.court-line {
    position: absolute;
    background: white;
}

.court-line--h {
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    transform: translateY(-50%);
}

.court-line--v {
    left: 50%;
    top: 5%;
    bottom: 5%;
    width: 1px;
    transform: translateX(-50%);
}

.court-line--service {
    top: 35%;
    left: 5%;
    right: 5%;
    height: 1px;
}

.court-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Texto bg decorativo */
.auth-panel__bg-text {
    position: absolute;
    bottom: -40px;
    right: -40px;
    font-size: 220px;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

/* ============================================================
   FORMULÁRIO (DIREITO)
   ============================================================ */

.auth-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-8);
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.4s var(--transition-spring) both;
}

.auth-mobile-header {
    display: none;
    margin-bottom: var(--space-8);
}

.auth-form-header {
    margin-bottom: var(--space-8);
}

.auth-form-header h2 {
    font-size: var(--text-3xl);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.auth-form-header p {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
}

/* Form group spacing */
.auth-form-wrapper .form-group {
    margin-bottom: var(--space-5);
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-forgot {
    font-size: var(--text-xs);
    color: var(--color-primary);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.form-forgot:hover {
    color: var(--color-primary-dark);
}

/* Alert boxes */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.5;
}

.form-alert--error {
    background: var(--color-error-subtle);
    color: var(--color-error);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.form-alert--success {
    background: var(--color-success-subtle);
    color: var(--color-success);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.form-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

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

.auth-divider span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Theme toggle */
.auth-theme-toggle {
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
}

/* Terms */
.auth-terms {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-4);
    line-height: 1.6;
}

.auth-terms a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================================
   PASSWORD RESET PAGE
   ============================================================ */

.auth-layout--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-8);
}

.auth-centered-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s var(--transition-spring) both;
}

.auth-centered-card .auth-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-centered-card .auth-form-header {
    text-align: center;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        display: none;
    }

    .auth-mobile-header {
        display: flex;
        justify-content: center;
    }

    .auth-form-container {
        padding: var(--space-8) var(--space-5);
        min-height: 100vh;
        align-items: flex-start;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }
}

/* Layout register tem painel mais estreito */
.auth-layout--register {
    grid-template-columns: 480px 1fr;
}

@media (max-width: 900px) {
    .auth-layout--register {
        grid-template-columns: 1fr;
    }
}
