/* === PÁGINA RESTABLECER CONTRASEÑA (tema terracota unificado) === */
@import url('https://fonts.cdnfonts.com/css/feather-bold');

* { box-sizing: border-box; margin: 0; padding: 0; }

/* === FOOTER (igual que login) === */
.footer {
    background-color: #2C2C2C;
    color: #F5E6D3;
    padding: 15px 20px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 13px;
    margin-bottom: 5px;
    color: #D9A574;
    font-weight: 500;
}

.footer-email {
    color: #F5E6D3;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-email:hover {
    color: #D9A574;
    text-decoration: underline;
}

/* Footer no fijo */
footer,
.footer {
    position: static !important;
}

body {
    font-family: 'Feather Bold', 'Arial', 'Helvetica', sans-serif;
    background-color: #F5E6D3 !important;
    color: #4A4A4A;
}

/* === HEADER === */
.navbar {
    background-color: #C67854 !important;
    background: linear-gradient(135deg, #C67854 0%, #B56744 100%) !important;
    padding: 20px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 15px; }

.logo .circle {
    width: 50px !important; height: 50px !important; 
    min-width: 50px !important; min-height: 50px !important;
    max-width: 50px !important; max-height: 50px !important;
    background-color: rgba(255, 255, 255, 0.3) !important; 
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative !important;
    overflow: hidden !important;
}
/* Pseudo-elemento eliminado - ahora se usa imagen */
.logo .circle::after {
    content: none;
    display: none;
}

/* Imagen dentro del círculo */
.logo .circle img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.logo h1 {
    color: #FFFFFF; font-size: 48px !important; font-weight: 900; letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); margin: 0;
}

.btn-regresar {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    padding: 12px 24px; font-weight: bold; font-size: 15px; text-decoration: none;
    transition: all 0.3s ease; margin-left: auto; border-radius: 8px;
}
.btn-regresar:hover { color: #F5E6D3 !important; background-color: rgba(255,255,255,0.1) !important; text-decoration: none; transform: translateX(-3px); }

/* === CONTENIDO === */
.contenido {
    min-height: calc(100vh - 90px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; background-color: #F5E6D3; flex-direction: column;
}

/* Título de página separado (como login/register) */
.titulo-form {
    text-align: center; color: #8B6B5C; margin-bottom: 40px; margin-top: 10px;
    padding-top: 20px; font-size: 36px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 2px; width: 100%; font-family: 'Feather Bold', 'Arial', 'Helvetica', sans-serif;
}

.forgot-box {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    border: 2px solid #D9A574;
    box-shadow: 0 8px 32px rgba(139, 107, 92, 0.2);
    max-width: 600px; width: 95%; text-align: left; position: relative; overflow: hidden;
}

.forgot-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D9A574, #C67854);
}

/* Título interno ya no se usa; se mantiene por compatibilidad si existiera */
.forgot-box h2 { display: none; }

/* === ALERTAS === */
.alert, .alert-success, .alert-error {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    border-left: 4px solid;
    max-width: 600px; width: 100%;
}

.alert-success {
    background-color: #E8F5E8; color: #2E7D32; border-left-color: #9FB18F;
}

.alert-error {
    background-color: #FFEBEE; color: #8B3A2E; border-left-color: #B85C4A;
}

/* === FORMULARIO === */
.forgot-box form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.forgot-box label { display: block; font-weight: 700; margin-bottom: 8px; color: #4A4A4A; font-size: 16px; }

.form-input {
    width: 100%; padding: 18px 20px; border: 2px solid #D9A574; border-radius: 10px;
    font-size: 16px; transition: all 0.3s ease; background-color: #FAFAFA; color: #4A4A4A; font-weight: 500;
}

.form-input:focus { border-color: #C67854; outline: none; box-shadow: 0 0 0 4px rgba(198, 120, 84, 0.2); background-color: #FFFFFF; transform: translateY(-2px); }

.form-input:hover { border-color: #C89465; background-color: #FFFFFF; }

.form-input.error { border-color: #B85C4A; background-color: #FFEBEE; }

.error-message { color: #B85C4A; font-size: 14px; margin-top: 6px; display: block; font-weight: 600; }

/* === BOTONES === */
.btn-guardar {
    width: 100%; background: linear-gradient(135deg, #9FB18F 0%, #8DAA7E 100%);
    color: #FFFFFF; border: none; padding: 16px; border-radius: 10px;
    font-weight: 700; font-size: 17px; cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1.5px; box-shadow: 0 4px 16px rgba(139, 107, 92, 0.3);
    position: relative; overflow: hidden; margin-top: 10px;
}

.btn-guardar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-guardar:hover::before {
    left: 100%;
}

.btn-guardar:hover { background: linear-gradient(135deg, #8DAA7E 0%, #7E976F 100%); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(139, 107, 92, 0.4); }

/* Botón negativo (si se usa en esta página) */
.btn-negative { padding: 14px 18px; border-radius: 10px; font-weight: 700; font-size: 16px; text-align: center; background: linear-gradient(135deg, #B85C4A 0%, #A64C3A 100%); color: #FFFFFF; border: none; }
.btn-negative:hover { background: linear-gradient(135deg, #A64C3A 0%, #8F3F30 100%); transform: translateY(-2px); }

/* === ENLACES === */
.form-links { text-align: center; margin-top: 24px; }

.login-link { color: #8B6B5C; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s ease; padding: 8px 16px; border-radius: 8px; display: inline-block; }

.login-link:hover { color: #C67854; background-color: #F5E6D3; text-decoration: none; }

/* Colores de subtítulos y textos secundarios */
.subtitle { color: #4A4A4A; }

/* Ocultar cualquier skip-link inyectado */
.skip-link { display: none !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar { padding: 16px 20px; }
    .logo h1 { font-size: 28px; letter-spacing: 2px; }
    .logo .circle { width: 40px; height: 40px; }
    .logo .circle::after { content: none; display: none; }
    .btn-regresar { padding: 10px 16px; font-size: 14px; }

    .contenido { padding: 20px 16px; }
    .forgot-box { padding: 30px 24px; max-width: 95%; }
    .forgot-box h2 { font-size: 28px; }
}