/* ============================================================
   styles.css — Estilos de autenticación
   Tomarza · Registration
   ============================================================ */

/* ── Layout ──────────────────────────────────────────────── */
.auth-section {
    min-height: 100vh;
    background: var(--cream);
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 3rem;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,.10);
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card--wide         { max-width: 520px; }
.auth-card--confirmation { text-align: center; }

/* ── Tipografía ──────────────────────────────────────────── */
.auth-card h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--ocean);
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
}

.auth-card--confirmation h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.auth-card--confirmation p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-caption {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ── Inputs ──────────────────────────────────────────────── */
.auth-card .form-control {
    border-radius: 8px;
    border: 1.5px solid #e0dbd4;
    background: var(--cream);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    transition: border-color .2s;
}

.auth-card .form-control:focus {
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(46,49,146,.10);
    background: #fff;
}

.auth-card .input-group .form-control {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.auth-card .input-group-text {
    background: var(--cream);
    border: 1.5px solid #e0dbd4;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: var(--muted);
    transition: color .2s;
}

.auth-card .input-group-text:hover { color: var(--ocean); }

.auth-card .form-check-label {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ── Botón ───────────────────────────────────────────────── */
.auth-card .btn-primary {
    background: var(--ocean);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.7rem;
    font-size: 0.95rem;
    transition: background .2s, transform .1s;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.auth-card .btn-primary:hover {
    background: var(--terracotta);
    transform: translateY(-1px);
    color: #fff;
}

/* ── Links ───────────────────────────────────────────────── */
.auth-link {
    color: var(--ocean);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-link:hover {
    color: var(--naranja);
    text-decoration: underline;
}

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e0dbd4;
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Alertas ─────────────────────────────────────────────── */
.auth-alert-error,
.auth-alert-success {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert-error {
    background: #fff2f2;
    border: 1px solid #ffc5c5;
    color: #b91c1c;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* ── Errores de campo ────────────────────────────────────── */
.field-error {
    color: #b91c1c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* ── Icono circular (páginas de confirmación) ────────────── */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.icon-circle--success {
    background: #f0fdf4;
    color: #15803d;
}

.icon-circle--info {
    background: #eff6ff;
    color: var(--ocean);
}
