/* =========================
   RESET BASE
========================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================
   LOGIN PAGE
========================= */
body.login-page {
    background-color: #060d1f;
    background-image: url(Img/fondo.jpeg); /* Cambia a url('Img/tu-fondo.jpg') cuando tengas la imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

body.login-page .overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.50);
    z-index: 0;
}

body.login-page .login-container {
    position: relative;
    z-index: 1;
    background-color: #0f1c3f;
    border-radius: 20px;
    padding: 40px 50px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.login-page .logo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

body.login-page .panel-text {
    color: #a4b3cc;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
}

body.login-page h1 {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 28px;
}

body.login-page .error-msg {
    width: 100%;
    background-color: rgba(184, 29, 36, 0.2);
    border: 1px solid #b81d24;
    color: #f8d7da;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-align: center;
}

body.login-page form {
    width: 100%;
}

body.login-page .input-group {
    width: 100%;
    margin-bottom: 16px;
}

body.login-page .input-group label {
    display: block;
    color: #a4b3cc;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

body.login-page .input-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: none;
    background-color: #ffffff;
    font-size: 0.95rem;
    color: #0a0f1d;
    outline: none;
    transition: box-shadow 0.2s;
}

body.login-page .input-group input:focus {
    box-shadow: 0 0 0 3px rgba(184, 29, 36, 0.4);
}

body.login-page .options {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 28px;
}

body.login-page .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a4b3cc;
    font-size: 0.85rem;
    cursor: pointer;
}

body.login-page .options a {
    color: #a4b3cc;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

body.login-page .options a:hover {
    color: #ffffff;
}

body.login-page button[type="submit"] {
    width: 100%;
    background-color: #b81d24;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

body.login-page button[type="submit"]:hover {
    background-color: #96161b;
    transform: translateY(-1px);
}

body.login-page button[type="submit"]:active {
    transform: scale(0.98);
}

body.login-page .footer-text {
    color: #5a6a84;
    font-size: 0.82rem;
}

/* =========================
   RESPONSIVE LOGIN
========================= */
@media (max-width: 520px) {
    body.login-page .login-container {
        padding: 30px 24px;
        border-radius: 0;
        min-height: 100vh;
        justify-content: center;
    }
}