/* login.css */

/* Reset básico para login */
.login-page, .register-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    position: relative;
    overflow: hidden;
    background: url("/img/fondo-login.jpg") no-repeat center center fixed; /* Imagen de fondo */
    background-size: cover;
}

/* Overlay de blur sobre la imagen */
.login-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); /* ligera oscuridad */
    backdrop-filter: blur(12px); /* blur general */
    
    pointer-events: none;
}

/* Contenido del login */
.login-content {
    position: relative;
    z-index: 1;
    width: 400px;
    background: rgba(255, 255, 255, 0.05); /* vidrio muy transparente */
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(13px);
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    color: #fff;
}

/* Título */
.login-content h2 {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Input boxes */
.login-content .input-box {
    position: relative;
    width: 100%;
    height: 55px;
    margin: 20px 0;
}

.login-content .input-box input {
    width: 100%;
    height: 100%;
    padding: 20px 45px 20px 20px;
    font-size: 16px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255,255,255,0.05); /* blur interno */
    color: #fff;
    backdrop-filter: blur(5px);
}

.login-content .input-box i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #fff;
}

/* Placeholder color */
.login-content .input-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Recordarme y enlace */
.login-content .remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 20px 0;
}

.login-content .remember label input {
    accent-color: #fff;
    margin-right: 4px;
}

.login-content .remember a {
    color: #fff;
    text-decoration: none;
}

.login-content .remember a:hover {
    text-decoration: underline;
}

/* Botón principal */
.login-content .btnn {
    display: block;
    width: 100%;
    height: 45px;
    background: #fff;
    color: #0a2862;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    margin-top: 16px;
    margin-bottom: 30px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Botones secundarios (Google / Facebook) */
.login-content .button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.login-content .button a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.login-content .button a i {
    font-size: 20px;
    margin-right: 8px;
}

.login-content .button a:hover {
    opacity: 0.8;
}

/* Inputs checkbox */
.login-content input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Ocultar elementos innecesarios de navegadores */
input::-ms-reveal,
input::-ms-clear,
input::-webkit-credentials-auto-fill-button,
input::-webkit-clear-button,
input::-webkit-inner-spin-button,
input::-webkit-contacts-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
}

/* Botones modernos 3D integrados en login.css */
.btnn {
    display: inline-block;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    border: none;
    line-height: 50px;
}

/* Botón de login */
.btnn.login {
    background: linear-gradient(145deg, #0a2862, #1e3a8a);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btnn.login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #1e3a8a, #0a2862);
}

/* Botón de registro */
.btnn.register {
    background: transparent;
    color: #0a2862;
    border: 2px solid #0a2862;
    font-weight: 600;
    text-shadow: none;
}

.btnn.register:hover {
    background: #0a2862;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Ajustes generales login-page */
.login-page .login-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-page h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #0a2862; /* color institucional para el título */
}

/* Inputs */
.input-box input {
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 15px 45px 15px 20px;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    color: #ffffff;
    width: 100%;
    backdrop-filter: blur(5px);
}

.input-box i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #ffffff;
}

/* Recordarme y enlaces */
.remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
}

.remember label input {
    accent-color: #fff;
    margin-right: 4px;
}

.remember a {
    color: #0a2862;
    font-weight: 600;
    text-decoration: none;
}

.remember a:hover {
    text-decoration: underline;
}

/* Botones sociales */
.button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.button a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.button a i {
    font-size: 20px;
    margin-right: 8px;
}
