/* ==========================================================
   auth.css — Estilos das páginas Login e Registro
   ========================================================== */

/* ===== Page Layout ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background orbs */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: authOrb 8s ease-in-out infinite alternate;
}

.auth-page::before {
    width: 500px;
    height: 500px;
    background: var(--sr-primary);
    top: -150px;
    right: -100px;
}

.auth-page::after {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: -80px;
    animation-delay: 4s;
}

@keyframes authOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

/* ===== Auth Card ===== */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: var(--sr-radius-xl);
    box-shadow: var(--sr-shadow-xl), 0 0 80px rgba(37, 99, 235, 0.06);
    padding: 44px 40px;
    position: relative;
    z-index: 1;
    animation: authCardAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes authCardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Brand / Title ===== */
.auth-brand {
    text-align: center;
    margin-bottom: 8px;
}

.auth-brand-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--sr-text);
    letter-spacing: -0.5px;
    margin: 0;
}

.auth-brand-name span {
    background: linear-gradient(135deg, var(--sr-primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--sr-text-muted);
    font-size: 0.92rem;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
}

/* ===== Google Button ===== */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    background: #ffffff;
    border: 1.5px solid #dadce0;
    border-radius: var(--sr-radius);
    font-family: var(--sr-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: #3c4043;
    cursor: pointer;
    transition: all var(--sr-transition);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c4c7cb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-google svg {
    flex-shrink: 0;
}

/* ===== Form Elements ===== */
.auth-form-group {
    margin-bottom: 18px;
}

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

.auth-form-group .sr-label a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sr-text-muted);
}

.auth-form-group .sr-label a:hover {
    color: var(--sr-primary);
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ===== Submit Button ===== */
.auth-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
}

/* ===== Error Alert ===== */
.auth-error {
    background: var(--sr-danger-light);
    color: var(--sr-danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 12px 16px;
    border-radius: var(--sr-radius);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 8px;
    animation: srFadeIn 0.3s ease-out;
}

.auth-error.show {
    display: flex;
}

/* ===== Footer Link ===== */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--sr-border);
}

.auth-footer p {
    color: var(--sr-text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.auth-footer a {
    font-weight: 700;
    color: var(--sr-primary);
}

/* ===== Input Group (WhatsApp icon prefix) ===== */
.auth-input-group {
    position: relative;
    display: flex;
}

.auth-input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border: 1.5px solid var(--sr-border);
    border-right: none;
    border-radius: var(--sr-radius) 0 0 var(--sr-radius);
    background: #f8fafc;
    color: var(--sr-text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-input-group .sr-input {
    border-radius: 0 var(--sr-radius) var(--sr-radius) 0;
}

/* ===== Form hint ===== */
.auth-hint {
    font-size: 0.78rem;
    color: var(--sr-text-muted);
    margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: var(--sr-radius-lg);
    }

    .auth-brand-name {
        font-size: 1.4rem;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }
}
