/* ================================
   CONFIGURACIÓN GENERAL
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #fff7d6, #ffd86b);
}


/* ================================
   CONTENEDOR PRINCIPAL
================================ */

.login-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}


/* ================================
   TARJETA
================================ */

.login-card {
    width: 100%;
    max-width: 400px;

    padding: 40px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);

    text-align: center;
}


/* ================================
   LOGO
================================ */

.logo {
    margin-bottom: 10px;
    font-size: 55px;
}


/* ================================
   TÍTULOS
================================ */

.login-card h1 {
    margin-bottom: 5px;

    color: #333333;
    font-size: 32px;
}

.subtitulo {
    margin-bottom: 30px;

    color: #777777;
    font-size: 14px;
}


/* ================================
   CAMPOS DEL FORMULARIO
================================ */

.campo {
    margin-bottom: 20px;
    text-align: left;
}

.campo label {
    display: block;

    margin-bottom: 7px;

    color: #444444;

    font-size: 14px;
    font-weight: bold;
}

.campo input {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #dddddd;
    border-radius: 9px;

    outline: none;

    font-size: 15px;

    transition: border-color 0.3s, box-shadow 0.3s;
}

.campo input:focus {
    border-color: #f2b705;

    box-shadow:
        0 0 0 3px rgba(242, 183, 5, 0.15);
}


/* ================================
   CONTRASEÑA
================================ */

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 55px;
}


/* Botón mostrar / ocultar contraseña */

.password-container .ver-password {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 40px;
    height: 40px;

    padding: 0;

    background: transparent;
    border: none;

    font-size: 20px;

    cursor: pointer;

    transform: translateY(-50%);
}

.password-container .ver-password:hover {
    background: transparent;

    transform: translateY(-50%);
}


/* ================================
   BOTONES
================================ */

button {
    width: 100%;

    padding: 14px;

    border: none;
    border-radius: 9px;

    background: #f2b705;

    color: #332600;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.3s,
        transform 0.3s;
}

button:hover {
    background: #dca600;

    transform: translateY(-2px);
}


/* ================================
   MENSAJES
================================ */

/* Error */

.error {
    margin-bottom: 20px;
    padding: 10px;

    background: #ffe5e5;

    border: 1px solid #ffc7c7;
    border-radius: 8px;

    color: #b42318;

    font-size: 14px;
}


/* Registro correcto */

.exito {
    margin-bottom: 20px;
    padding: 12px;

    background: #e9f9ef;

    border: 1px solid #b7e4c7;
    border-radius: 8px;

    color: #207a3c;

    font-size: 14px;
}


/* ================================
   REGISTRO / LOGIN
================================ */

.registro-link {
    margin-top: 20px;

    color: #777777;

    font-size: 14px;
}

.registro-link a {
    margin-left: 4px;

    color: #d99b00;

    font-weight: bold;
    text-decoration: none;
}

.registro-link a:hover {
    text-decoration: underline;
}


/* ================================
   BOTÓN CERRAR SESIÓN
================================ */

.boton-salir {
    display: block;

    width: 100%;

    padding: 14px;

    background: #f2b705;

    border-radius: 9px;

    color: #332600;

    font-weight: bold;
    text-decoration: none;

    transition:
        background 0.3s,
        transform 0.3s;
}

.boton-salir:hover {
    background: #dca600;

    transform: translateY(-2px);
}


/* ================================
   PIE
================================ */

.footer {
    margin-top: 25px;

    color: #aaaaaa;

    font-size: 12px;
}


/* ================================
   RESPONSIVE - CELULARES
================================ */

@media (max-width: 500px) {

    .login-card {
        padding: 30px 22px;
    }

}