/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #171717;
    color: #fff;
    line-height: 1.6;
    flex-direction: column;
    position: relative;
    font-family: sans-serif;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Líneas animadas de fondo */
.lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: auto;
    width: 90vw;
}

.lines .line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.lines .line::after {
    content: "";
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
    animation: run 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.lines .line:nth-child(1) {
    margin-left: -25%;
}

.lines .line:nth-child(1)::after {
    animation-delay: 2s;
}

.lines .line:nth-child(3) {
    margin-left: 25%;
}

.lines .line:nth-child(3)::after {
    animation-delay: 2.5s;
}

@keyframes run {
    0% {
        top: -50%;
    }
    100% {
        top: 110%;
    }
}

/* Contenedor principal para restablecer contraseña */
.password-reset-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    text-align: center;
    z-index: 1;
    position: relative;
    opacity: 0;
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.password-reset-container h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
}

.password-reset-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.password-reset-container input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    transform: scale(1.05);
}

.password-reset-container button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.password-reset-container button:hover {
    background-color: #0056b3;
}

.password-reset-container button:active {
    transform: scale(0.95);
}

.password-reset-container button.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

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

/* Mensaje de error */
.error-message {
    display: flex;
    color: #ff0000;
    font-size: 16px;
    margin-bottom: 5px;
    width: 100%;
    padding: 10px;
    flex-direction: column;
}

/* Footer */
footer {
    margin-top: 20px;
    color: #777;
    font-size: 14px;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Responsividad para móviles */
@media (max-width: 600px) {
    .password-reset-container {
        padding: 15px;
    }

    .password-reset-container h1 {
        font-size: 20px;
    }

    .password-reset-container button {
        font-size: 16px;
    }
}
