/* ===============================
   RESETEO GENERAL
================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(135deg, #003864, #40B5C3);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===============================
   CONTENEDOR PRINCIPAL
================================== */
.contenedor-login {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: center;
}

/* Logo */
.logo-registro {
    width: 140px;
    margin-bottom: 15px;
}

/* Títulos */
h2 {
    color: #003864;
    margin-bottom: 20px;
}

/* ===============================
   LABELS E INPUTS
================================== */
label {
    display: block;
    margin-top: 14px;
    text-align: left;
    font-weight: 600;
    color: #003864;
}

input {
    width: 100%;
    padding: 11px 14px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
}

input:focus {
    border-color: #0078A8;
}

/* ===============================
   INPUT CON ICONO (OJO)
================================== */
.input_wrapper {
    position: relative;
}

.input_icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(10%); /* mueve un poco para ajustarse al label */
    width: 22px;
    height: 22px;
    cursor: pointer;
}


/* ===============================
   BOTONES
================================== */
button,
.btn-login,
.btn-registrar {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #003864;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover,
.btn-login:hover,
.btn-registrar:hover {
    background: #025a8e;
}

/* ===============================
   MENSAJES Y LINKS
================================== */
.error {
    background: #ffdddd;
    color: #a30000;
    padding: 10px;
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    margin-bottom: 15px;
}

.switch-form {
    margin-top: 15px;
    font-size: 0.9rem;
}

.switch-form a {
    color: #003864;
    font-weight: 600;
}

.link-contraseña {
    margin-top: 12px;
}

.link-contraseña a {
    color: #0078A8;
}

/* ===============================
   INDICADOR DE FORTALEZA
================================== */
.password-strength {
    margin-top: 10px;
}

.progress {
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

.progress-bar {
    height: 8px;
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

/* ===============================
   LISTA DE REQUISITOS
================================== */
.password-strength-items {
    list-style: none;
    margin-top: 10px;
}

.password-strength-items li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.password-strength-items img {
    width: 14px;
    height: 14px;
}

/* Checkboxes: términos y aviso */
.check-container { 
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.check-container label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

/* Estilo del input checkbox nativo (mejor visual) */
.check-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #cfcfcf;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background: #fff;
    transition: all .12s ease-in-out;
}

.check-container input[type="checkbox"]:checked {
    background: linear-gradient(180deg,#0b63c7,#044f9a);
    border-color: rgba(0,0,0,0);
}

.check-container input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-58%);
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}

/* Focus accesible */
.check-container input[type="checkbox"]:focus {
    outline: 3px solid rgba(11,99,199,0.18);
    outline-offset: 2px;
    box-shadow: none;
}

/* Texto y enlaces dentro del label */
.check-container a {
    color: #0b63c7;
    text-decoration: none;
    font-weight: 600;
}

.check-container a:hover,
.check-container a:focus {
    text-decoration: underline;
    outline: none;
}

/* Versión compacta para pantallas pequeñas */
@media (max-width: 420px) {
    .check-container { font-size: 13px; gap: 8px; }
    .check-container input[type="checkbox"] { width: 16px; height: 16px; }
}

/* Mensaje de error relacionado con los checkboxes */
.error-check {
    color: #b00020;
    font-size: 13px;
    margin-top: 6px;
}
