/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* =========================
   BODY (FONDO MODERNO)
========================= */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #035bfd, #2a5298, #6a11cb);
    display: flex;
    flex-direction: column;
}

/* =========================
   HEADER
========================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #ffd900, #f5f109);
    text-align: center;
    padding: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* =========================
   CONTENEDOR
========================= */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 90px 15px 70px;
}

/* =========================
   LOGIN BOX
========================= */
.login-box {
    width: 100%;
    max-width: 420px;

    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(18px);

    border-radius: 25px;
    padding: 35px 25px;
    color: white;

    border: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 15px 40px rgba(0,0,0,0.3);

    animation: fadeIn 0.7s ease;
}

/* ANIMACIÓN */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TEXTOS
========================= */
.login-box h3 {
    text-align: center;
    opacity: 0.8;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 26px;
}

.info {
    text-align: center;
    font-size: 13px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* =========================
   INPUTS
========================= */
label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.input-container {
    position: relative;
    margin-bottom: 18px;
}

input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border-radius: 12px;
    border: 2px solid transparent;
    outline: none;
    font-size: 15px;

    background: #ffffff;
    color: #000;

    transition: 0.3s;
}

/* PLACEHOLDER */
input::placeholder {
    color: #888;
}

/* FOCUS MODERNO */
input:focus {
    border: 2px solid #ffd900;
    box-shadow: 0 0 8px rgba(255,217,0,0.5);
    transform: scale(1.02);
}

/* =========================
   QUITAR FLECHAS NUMBER
========================= */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================
   ICONO OJO
========================= */
.toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    transition: 0.3s;
}

.toggle:hover {
    color: #000;
}

/* =========================
   BOTÓN
========================= */
button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg, #ffd900, #f5f109);
    color: #000;
    font-size: 16px;
    font-weight: bold;

    margin-top: 10px;
    cursor: pointer;

    transition: 0.3s;
}

/* HOVER */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* CLICK */
button:active {
    transform: scale(0.96);
}

/* =========================
   MENSAJE
========================= */
#mensaje {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
}

/* =========================
   FOOTER
========================= */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #0d0349;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 13px;
}

/* =========================
   AUTOFILL FIX (IMPORTANTE)
========================= */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000 !important;
}

/* =========================
   RESPONSIVE
========================= */

/* CELULAR */
@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
    }

    .login-box h1 {
        font-size: 22px;
    }
}

/* TABLET */
@media (min-width: 768px) {
    .login-box {
        max-width: 450px;
    }
}

/* PC */
@media (min-width: 1024px) {
    .login-box {
        max-width: 480px;
        padding: 40px;
    }
}
