/* ===== RESET Y BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f5faf5;
    color: #1e293b;
    line-height: 1.5;
    min-height: 100vh;
}

/* ===========================
   LAYOUT DOS PANELES
   =========================== */
.auth-page {
    display: flex;
    min-height: 100vh;
}

/* ===========================
   PANEL IZQUIERDO
   =========================== */
.auth-panel-left {
    width: 420px;
    background: linear-gradient(160deg, #1e4a1e 0%, #2d6e2d 60%, #1a3d1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.auth-panel-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.auth-panel-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Brand */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.auth-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.auth-brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.auth-panel-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.auth-panel-sub {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
    margin-bottom: 2.75rem;
}

/* Pasos */
.auth-pasos {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-paso {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.paso-icono {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.auth-paso span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.auth-paso.activo .paso-icono {
    background: white;
    border-color: white;
    color: #1e4a1e;
    box-shadow: 0 4px 14px -4px rgba(255,255,255,0.4);
}

.auth-paso.activo span {
    color: white;
    font-weight: 700;
}

.auth-paso.completado .paso-icono {
    background: rgba(74,222,128,0.2);
    border-color: #4ade80;
    color: #4ade80;
}

.auth-paso.completado span { color: rgba(255,255,255,0.8); }

.auth-paso-linea {
    width: 2px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    margin-left: 17px;
}

.auth-paso-linea.completado { background: #4ade80; opacity: 0.5; }

/* ===========================
   PANEL DERECHO
   =========================== */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f5faf5;
}

.auth-form-card {
    background: white;
    border-radius: 1.75rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(30,74,30,0.1);
    box-shadow: 0 12px 32px -8px rgba(0,60,0,0.1);
}

/* Header tarjeta */
.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-icono {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e4a1e 0%, #2d6e2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px -6px rgba(30,74,30,0.4);
}

.auth-form-titulo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f2b0f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-form-sub {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===========================
   FORMULARIO
   =========================== */
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e4a1e;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-label i { font-size: 0.82rem; opacity: 0.8; }

/* Input con icono izquierdo */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icono-left {
    position: absolute;
    left: 1rem;
    color: #94a894;
    font-size: 0.9rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid #d1e8d1;
    border-radius: 14px;
    font-size: 0.98rem;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f9fbf9;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-input:focus {
    border-color: #1e4a1e;
    box-shadow: 0 0 0 3px rgba(30,74,30,0.1);
    background: white;
}

.form-input::placeholder { color: #b0c8b0; }

.form-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    line-height: 1.4;
}

.form-hint i { font-size: 0.72rem; margin-top: 2px; flex-shrink: 0; }

/* Botón principal */
.btn-recuperar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #1e4a1e;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px -4px rgba(30,74,30,0.45);
    margin-top: 0.25rem;
}

.btn-recuperar:hover {
    background: #163b16;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(30,74,30,0.4);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2f0e2;
}

.auth-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5a6e5a;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-volver:hover { color: #1e4a1e; }
.auth-volver i { font-size: 0.78rem; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .auth-panel-left { display: none; }
    .auth-panel-right { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .auth-panel-right { padding: 1rem; }
    .auth-form-card { padding: 1.75rem 1.25rem; border-radius: 1.25rem; }
    .auth-form-titulo { font-size: 1.3rem; }
}