/* ============================================================
   auth.css — Telas de autenticação (login, register, cliente-login)
   Layout em duas colunas com a identidade da 18 Comunicação.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f5f7;
    color: #1a1a1a;
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 760px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.10);
    border: 0.5px solid #e6e6e8;
}

/* ===== Painel escuro (esquerda) ===== */
.auth-side {
    background: #1a1a1a;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.auth-logo {
    width: 56px; height: 56px;
    background: #E30613;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 26px; letter-spacing: -1px;
}
.auth-side-title {
    color: #fff; font-size: 22px; font-weight: 600; line-height: 1.3;
}
.auth-side-text {
    color: #9b9b9b; font-size: 13px; line-height: 1.6;
}
.auth-side-accent {
    height: 3px; width: 48px; background: #E30613; border-radius: 2px; margin-top: 4px;
}

/* ===== Formulário (direita) ===== */
.auth-form-side {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-title { font-size: 22px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: #6b6b6b; margin-bottom: 24px; }

.auth-group { margin-bottom: 16px; }
.auth-label {
    display: block; font-size: 12px; font-weight: 600; color: #3f3f46; margin-bottom: 6px;
}
.auth-label i { color: #9b9b9b; margin-right: 4px; }

.auth-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input:focus {
    outline: none;
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227,6,19,.12);
}

.auth-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: #E30613;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s ease;
}
.auth-btn:hover { background: #B30410; }

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}

.auth-link {
    margin-top: 20px; text-align: center; font-size: 13px; color: #6b6b6b;
}
.auth-link a { color: #E30613; font-weight: 600; text-decoration: none; }
.auth-link a:hover { color: #B30410; text-decoration: underline; }

/* ===== Responsivo: empilha em telas pequenas ===== */
@media (max-width: 640px) {
    .auth-card { grid-template-columns: 1fr; max-width: 420px; }
    .auth-side { padding: 32px 28px; }
    .auth-side-title { font-size: 19px; }
    .auth-form-side { padding: 32px 28px; }
}