/* ===========================
   FONDO LOGIN
=========================== */

body {
    margin: 0;
    min-height: 100vh;
    background: url('Dart.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* ===========================
   CAPA OSCURA
=========================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* ===========================
   HEADER
=========================== */

.header {
    display: flex;
    align-items: center;

    padding: 20px;
    color: white;

    position: relative;
    z-index: 1;
}

.header img {
    width: 80px;
    margin-right: 15px;
}

.header h2 {
    margin: 0;
}

/* ===========================
   LOGIN
=========================== */

.login-container {
    width: 350px;
    margin: 100px auto;
    padding: 30px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

    color: white;

    position: relative;
    z-index: 1;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* ===========================
   FORMULARIO
=========================== */

.login-container label {
    display: block;
    margin-bottom: 5px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;

    border: none;
    border-radius: 6px;
}

.login-container button {
    width: 100%;
    padding: 12px;

    background: #007bff;
    color: white;

    border: none;
    border-radius: 6px;

    cursor: pointer;
    font-weight: bold;

    transition: background 0.3s;
}

.login-container button:hover {
    background: #0056b3;
}

/* ===========================
   MENSAJES
=========================== */

.login-container .error {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 15px;
}

.login-container .success {
    color: #7dff98;
    text-align: center;
    margin-bottom: 15px;
}

/* ===========================
   LINKS
=========================== */

.login-container a {
    color: #a8d0ff;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 480px) {

    .login-container {
        width: 90%;
        margin-top: 50px;
        padding: 20px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .header img {
        margin: 0 0 10px 0;
    }
}