/* ======== RESET ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}

body {
    background: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ======== GLASS BASE ======== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

/* ======== CONTENEDOR LOGIN ======== */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 22px;
    text-align: center;
}

.login-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* ======== MENSAJE ERROR ======== */
.mensaje.error {
    background: rgba(255, 0, 80, 0.15);
    border: 1px solid rgba(255, 0, 80, 0.3);
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 20px;
    color: #ff4d6d;
    font-weight: 600;
}

/* ======== FORMULARIO ======== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    text-align: left;
}

label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 6px;
    display: block;
}

input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
}

input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
}

/* ======== BOTÓN LOGIN ======== */
.btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: #fff;

    background: linear-gradient(135deg, #ffffff25, #ffffff10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);

    transition: 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

/* ======== LINK VOLVER ======== */
.back-link {
    display: block;
    margin-top: 20px;
    color: #aaa;
    text-decoration: none;
    transition: 0.25s ease;
}

.back-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
