* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(to right, var(--azul-medio), var(--azul-brillante));
    color: white;
    text-align: center;
}

.header-content { padding: 15px; }

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 8px solid var(--azul-medio);
}

.tab-group {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 700;
    color: var(--gris);
    transition: 0.3s;
}

.tab.active {
    color: var(--azul-brillante);
    border-bottom: 3px solid var(--azul-brillante);
}

.form-content {
    display: none;
    animation: fadeIn 0.5s;
}

.form-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--azul-oscuro);
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid var(--azul-claro);
    border-radius: 8px;
    font-family: 'Montserrat';
}

.btn-submit {
    background: linear-gradient(to right, var(--azul-medio), var(--azul-brillante));
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.forgot-pass {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--gris);
    text-decoration: none;
}

footer {
    background: var(--azul-oscuro);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
}

/* ===== RECUPERAR CONTRASEÑA ===== */

.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

.recover-icon {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 10px;
}

.success-icon {
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.recover-title {
    text-align: center;
    color: var(--azul-oscuro);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.recover-desc {
    text-align: center;
    color: var(--gris);
    font-size: 0.85rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--azul-medio);
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    color: var(--azul-brillante);
}

.resend-link {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gris);
    margin-top: 12px;
}

.resend-link a {
    color: var(--azul-brillante);
    font-weight: 700;
    text-decoration: none;
}

