/* Base y Layout */
body {
    width: 100%;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000428, #004e92); 
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    overflow: hidden;
}

/* Contenedor Principal */
.form-container {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 400px;
    max-height: 80vh; 
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    overflow-y: auto; 
    overflow-x: hidden; 
    z-index: 1;
}

/* Scrollbar del contenedor */
.form-container::-webkit-scrollbar {
    width: 8px;
}

.form-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4); 
    border-radius: 8px; 
}

/* Formulario y Logo */
.formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.div-img-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 80%;
}

.formulario img {
    height: 80px;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin: 8px auto 24px auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

@media (max-width: 480px) {
    .formulario img {
        max-height: 52px;
        max-width: 80%;
        margin: 6px auto 16px auto;
    }
}

/* Campos de entrada (Inputs) */
.input {
    width: 100%;
    box-sizing: border-box; 
    margin: 0;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(216, 216, 216, 0.5);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input:focus {
    border-color: rgb(99, 164, 212);
    box-shadow: 0 0 10px rgba(99, 164, 212, 0.8);
}

/* Contenedor de Password y Toggle */
.password-container {
    position: relative;
    width: 100%;
}

.password-container .input {
    width: 100%;
    padding-right: 40px; 
    box-sizing: border-box;
}

.password-container .toggle-password {
    position: absolute;
    top: 38%;
    right: 10px; 
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-container .toggle-password:hover {
    color: rgba(255, 255, 255, 1);
}

/* Enlaces (¿Olvidaste tu contraseña? / No tengo cuenta) */
.texto-contrasena {
    display: block;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.texto-contrasena:hover {
    color: rgb(99, 164, 212);
    text-shadow: 0 0 10px rgba(99, 164, 212, 0.8);
}

/* Botón Enviar */
.boton-enviar {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #64b5f6, #1e88e5);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 114, 228, 0.6);
    position: relative;
    overflow: hidden;
}

.boton-enviar:hover {
    background: linear-gradient(90deg, #1e88e5, #64b5f6);
    box-shadow: 0 6px 20px rgba(0, 114, 228, 0.9);
    transform: scale(1.05);
}

/* Mensajes de error y éxito */
.mensaje-error {
    margin-top: 20px;
    color: rgb(255, 74, 74);
    font-size: 14px;
    text-align: center;
}

.mensaje-exito {
    margin-top: 20px;
    color: rgb(24, 211, 71);
    font-size: 14px;
    text-align: center;
}

.password-hint {
    width: 100%;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    margin: -12px 0 14px 4px;
    text-align: left;
    line-height: 1.35;
}

.terms-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 6px 0 10px 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.terms-checkbox-row.terms-error {
    border-color: rgba(255, 74, 74, 0.9);
    background: rgba(255, 74, 74, 0.12);
}

.terms-checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    min-width: 16px;
    min-height: 16px;
    accent-color: #64b5f6;
    cursor: pointer;
}

.terms-checkbox-row a {
    color: #90caf9;
    text-decoration: underline;
    font-weight: 600;
}

.terms-checkbox-row a:hover {
    color: #ffffff;
}

.resend-activation-box {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.btn-resend-activation {
    width: 100%;
    padding: 10px 14px;
    border-radius: 22px;
    border: 1px solid rgba(100, 181, 246, 0.65);
    background: rgba(100, 181, 246, 0.16);
    color: #e3f2fd;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-resend-activation:hover:not(:disabled) {
    background: rgba(100, 181, 246, 0.3);
    border-color: #90caf9;
}

.btn-resend-activation:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Decoración (Círculo flotante) */
.form-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}