body {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}

/* CONTENEDOR LOGIN */

.login-container {
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CAJA LOGIN */

.login-box {
    width: 380px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

/* LOGO */

.logo {
    width: 300px;
    margin-bottom: 5px;
}

/* TITULO */

.login-box h2 {
    margin-bottom: 20px;
    color: #de2e2e;
}

/* INPUTS */

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* PASSWORD */

.password-group {
    position: relative;
}

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

.toggle-password {
    position: absolute;
    right: 12px;
    top: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    line-height: 1px;
}

.password-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

/* BOTON */

.btn-cdls {
    width: 100%;
    padding: 12px;
    background: #de2e2e;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cdls:hover {
    background: #b71c1c;
}

/* FOOTER GLOBAL */

.footer-cdls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #de2e2e;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

/* ALERTAS */

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.alert-danger {
    background: #ffd6d6;
    color: #a10000;
}

.alert-success {
    background: #d6ffe0;
    color: #007a2f;
}

/* MENSAJES DE VALIDACION */

#mensaje_email,
#mensaje_password,
#strength {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
}

/* ========================= */
/* REGISTRO COMPACTO */
/* ========================= */

.register-container {
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-box {
    width: 420px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

/* INPUTS COMPACTOS */

.register-box .form-group {
    margin-bottom: 10px;
}

.register-box input {
    padding: 10px;
}

/* APELLIDOS EN FILA */

.row-apellidos {
    display: flex;
    gap: 10px;
}

.row-apellidos .form-group {
    width: 50%;
}

/* LOGO REGISTRO */

.register-box .logo {
    width: 300px;
    margin-bottom: 5px;
}

/* TITULO REGISTRO */

.register-box h2 {
    margin-bottom: 10px;
    color: #de2e2e;
    font-weight: bold;
}

/* BOTON REGISTRO */

.register-box .btn-cdls {
    padding: 10px;
    margin-top: 10px;
}

/* SEPARACION BOTON Y LINK */

.register-box .text-center {
    margin-top: 25px;
}

/* LINK LOGIN */

.register-box a {
    color: #de2e2e;
    text-decoration: none;
    font-weight: bold;
}

.register-box a:hover {
    text-decoration: underline;
}

/* ALERT SEPARADO DEL LOGO */

.register-box .alert {
    margin-top: 10px;
}

.login-link {
    margin-top: 5px;
}