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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* Se adapta cuando la barra de direcciones se oculta/muestra */
    background: linear-gradient(135deg, #1b1e38 0%, #1f2347 50%, #161a32 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Animación de fondo */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efectos de nebulosa en el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.reset-container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh; /* Se adapta dinámicamente al viewport móvil */
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Card principal */
.reset-card {
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25),
                0 0 30px rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 450px;
    min-height: 520px;
    padding: 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Efecto de luz girando en naranja/amber */
.reset-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: conic-gradient(transparent, rgba(251, 146, 60, 0.1), transparent 30%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.reset-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reset-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(251, 146, 60, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Sección del header */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    margin-bottom: 1rem;
}

.perseo-logo-reset {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(251, 146, 60, 0.6));
    transition: all 0.4s ease;
    margin-bottom: 1rem;
}

.reset-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.8rem;
}

.reset-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Sección del mensaje */
.message-section {
    text-align: center;
    position: relative;
    z-index: 3;
    margin-bottom: 1.5rem;
}

.reset-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.5));
}

.reset-message {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reset-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    margin: 0 auto;
}

/* Formulario */
.reset-form {
    width: 100%;
    position: relative;
    z-index: 3;
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    z-index: 4;
    filter: drop-shadow(0 0 5px rgba(251, 146, 60, 0.3));
}

.input-with-icon input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #ffffff;
    caret-color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-with-icon input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.input-with-icon input:focus {
    outline: none;
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

.input-with-icon input:focus::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Estilos para autocompletado del navegador */
.input-with-icon input:-webkit-autofill,
.input-with-icon input:-webkit-autofill:hover,
.input-with-icon input:-webkit-autofill:focus,
.input-with-icon input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-image: none !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.input-with-icon input:-webkit-autofill::first-line {
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 1rem !important;
}

/* Botón de reset */
.reset-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4);
}

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

/* Enlace de volver */
.back-to-login {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.back-to-login:hover {
    color: #fbbf24;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* Logo footer */
.footer-logo {
    position: relative;
    z-index: 3;
}

.alcaldia-logo-reset {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
    }
    
    .reset-container {
        padding: 1.5rem;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .reset-card {
        max-width: none;
        width: 100%;
        padding: 2rem 2rem;
        min-height: auto;
    }
    
    .reset-title {
        font-size: 1.6rem;
    }
    
    .reset-message {
        font-size: 1.2rem;
    }
    
    .reset-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body {
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
    }
    
    .reset-container {
        padding: 0.5rem;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .reset-card {
        padding: 1.5rem 1.5rem;
        min-height: auto;
        border-radius: 20px;
    }
    
    .reset-title {
        font-size: 1.4rem;
    }
    
    .reset-icon {
        font-size: 2.5rem;
    }
    
    .perseo-logo-reset {
        width: 70px;
    }
    
    .alcaldia-logo-reset {
        height: 50px;
    }
}