/* ==========================================================================
   AUTH.CSS — Login & Cadastro
   ========================================================================== */

.auth {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-12) var(--s-6);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: var(--r-xl);
    padding: var(--s-12) var(--s-10);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--paper-mid);
    position: relative;
    overflow: hidden;
}

/* Linha dourada decorativa no topo */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--s-10);
}

.auth-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-lg);
    background: var(--gold-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s-6);
    font-size: 1.25rem;
    color: var(--gold);
}

.auth-card__header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: var(--s-2);
    letter-spacing: -0.02em;
}

.auth-card__header p {
    color: var(--ink-faded);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Alerts */
.auth-alert {
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-md);
    margin-bottom: var(--s-6);
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-alert--error {
    background: var(--error-wash);
    color: var(--error);
    border: 1px solid rgba(196, 60, 60, 0.15);
}

.auth-alert--success {
    background: var(--success-wash);
    color: var(--success);
    border: 1px solid rgba(58, 125, 92, 0.15);
}

.auth-alert p {
    margin-bottom: var(--s-1);
    color: inherit;
}
.auth-alert p:last-child {
    margin-bottom: 0;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.auth-field label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
}

.auth-field input {
    font-family: 'Outfit', sans-serif;
    padding: var(--s-4) var(--s-5);
    border: 1.5px solid var(--paper-deep);
    border-radius: var(--r-md);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--paper);
    transition: all var(--t-fast);
}

.auth-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.1);
    outline: none;
    background: var(--white);
}

.auth-field input::placeholder {
    color: var(--ink-ghost);
}

/* Submit */
.auth-submit {
    width: 100%;
    padding: var(--s-4) var(--s-6);
    border: none;
    border-radius: var(--r-full);
    background: var(--ink);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--t-fast);
    margin-top: var(--s-3);
}

.auth-submit:hover {
    background: var(--ink-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: var(--s-8);
    padding-top: var(--s-6);
    border-top: 1px solid var(--paper-mid);
    font-size: 0.875rem;
    color: var(--ink-faded);
}

.auth-footer a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--t-fast);
}

.auth-footer a:hover {
    color: var(--gold-dark);
}

/* Divider decorativo */
.auth-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto var(--s-6);
}

/* Variante wide para cadastro */
.auth-card--wide {
    max-width: 540px;
}

/* Row para campos lado a lado */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-row {
        grid-template-columns: 1fr;
    }
    .auth {
        padding: var(--s-6) var(--s-4);
    }
    .auth-card {
        padding: var(--s-8) var(--s-6);
        border-radius: var(--r-lg);
    }
}
