/* ================================================================
   SafaCar — Registro Page CSS
   Archivo: static/css/registro.css
   ================================================================ */

/* ── Fondo ── */
.registro-page-bg {
    min-height: 100vh;
    background: linear-gradient(160deg, #f0f4ff 0%, #fafafa 50%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* ── Tarjeta principal ── */
.registro-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 24px 48px rgba(16, 185, 129, 0.09);
    overflow: hidden;
    border: none;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Cabecera verde esmeralda ── */
.registro-header {
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
    padding: 2.6rem 2rem 2rem;
    text-align: center;
}

.registro-header .brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: #fff;
}

.registro-header .brand-name {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.registro-header .brand-sub {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
    margin: 0;
}

/* ── Badge SAFA ── */
.registro-header .safa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 0.28rem 0.85rem;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    margin-top: 0.7rem;
}

/* ── Cuerpo ── */
.registro-body {
    padding: 2rem 2.2rem 1.5rem;
}

.registro-body .form-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 0.3rem;
}

.registro-body .form-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 1.6rem;
}

/* ── Etiqueta de campo ── */
.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.4rem;
}

/* ── Input moderno ── */
.registro-input {
    width: 100%;
    background: #f8faff;
    border: 1.8px solid #e2e8f0;
    border-radius: 14px !important;
    padding: 0.78rem 1rem !important;
    font-size: 0.92rem;
    color: #0f172a;
    transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.registro-input:focus {
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.registro-input::placeholder { color: #b0bec5; }

/* ── Requisitos de contraseña ── */
.password-rules {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
}

.password-rules li {
    font-size: 0.78rem;
    color: #166534;
    margin-bottom: 0.18rem;
}

/* ── Help text ── */
.field-help {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.35rem;
    padding-left: 0.2rem;
}

/* ── Error ── */
.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    padding-left: 0.2rem;
}

/* ── Separador de pasos ── */
.step-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.4rem 0 1rem;
}

.step-divider::before,
.step-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.step-divider span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Botón principal ── */
.btn-registro-main {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: opacity 0.2s, transform 0.18s, box-shadow 0.22s;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.btn-registro-main:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.42);
}

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

/* ── Footer ── */
.registro-footer {
    background: #f8fdf9;
    border-top: 1px solid #d1fae5;
    padding: 1.1rem 2.2rem;
    text-align: center;
}

.registro-footer p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.registro-footer a {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.registro-footer a:hover { color: #047857; text-decoration: underline; }
