/* Fondo general con imagen según dispositivo */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fondo PC por defecto */
body {
    background-image: url("../images/pc.paginaweb.png");
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 601px) {
    body {
        background-image: url("../images/tablet.paginaweb.png");
    }
}

/* Celular */
@media (max-width: 600px) {
    body {
        background-image: url("../images/celular.paginaweb.png");
    }
}

/* Capa oscura */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Contenedor */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Tarjeta Glass */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 28px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 18px;
}

.login-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.login-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #e2e2e2;
}

/* Error */
.login-error {
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.6);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #ffb5b5;
    font-size: 13px;
}

/* Form */
/* CONTENEDOR UNIFORME DE LOS INPUTS */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 14px;
}

/* LABELS ALINEADOS */
.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #e6e6e6;
    display: block;
}

/* INPUTS ALINEADOS + MISMO ALTO */
.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    outline: none;
    box-sizing: border-box;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: #4da3ff;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 4px rgba(77, 163, 255, 0.7);
}

/* BOTÓN MODERNO */
.btn-login {
    width: 100%;
    padding: 12px 0;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;

    background: linear-gradient(135deg, #2b7cff, #009dff);
    box-shadow: 0 8px 22px rgba(0, 136, 255, 0.35);

    transition:
        transform 0.18s ease,
        box-shadow 0.25s ease,
        opacity 0.2s ease;
}

/* Efecto hover */
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 136, 255, 0.55);
    opacity: 0.95;
}

/* Efecto clic */
.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 5px 14px rgba(0, 136, 255, 0.35);
    opacity: 0.85;
}