:root {
    --primary: #2d3748;
    --accent: #28a745;
    --danger: #e53e3e;
    --bg-body: #f0f2f5;
    --white: #ffffff;
    --text-muted: #718096;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-wrapper {
    width: 95vw;
    max-width: 900px; /* Un poco más angosto que el login para este tipo de acción */
    height: 600px;
    display: flex;
}

.recovery-container {
    background: var(--white);
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* DECORACIÓN LATERAL (Mismo estilo que el Login) */
.side-decoration {
    flex: 1;
    background: url('../img/Fondo.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-decoration::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(40, 167, 69, 0.8) 100%);
}

.side-decoration .overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
}

.side-decoration i { font-size: 5rem; margin-bottom: 20px; opacity: 0.9; }
.side-decoration h2 { font-size: 2rem; margin-bottom: 10px; }

/* CONTENIDO DEL FORMULARIO */
.form-content {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 40px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.back-link:hover { color: var(--accent); }

.form-header { text-align: center; margin-bottom: 30px; }

.icon-box {
    width: 70px;
    height: 70px;
    background: #f0fdf4;
    color: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
}

.form-header h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }
.form-header p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* INPUTS Y BOTONES (Igual que el Login) */
.input-group { position: relative; margin-bottom: 20px; }
.input-group i {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--accent);
    background: white;
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.15);
}

.primary-btn:hover { background: #218838; transform: translateY(-2px); }

/* ALERTAS */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.form-footer { margin-top: 25px; text-align: center; font-size: 0.9rem; }
.form-footer a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .side-decoration { display: none; }
    .main-wrapper { height: auto; width: 100%; max-width: 450px; }
    .recovery-container { border-radius: 20px; }
}