/* Reset b谩sico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 0% 10% 0% 10%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}



/* ----------------------- */
/* ESTILO LOGIN Y REGISTER */
/* ----------------------- */
body.login-body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    justify-content: center;
    min-height: 100vh;
    padding: 70px;
    box-sizing: border-box;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 0; /* separaci贸n vertical superior e inferior */
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 15px;
    text-align: center;
    box-sizing: border-box;
}

.login-box h2 {
    font-size: 28px;
    color: #111;
    margin-bottom: 30px;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form label {
    font-weight: 600;
    text-align: left;
    color: #333;
    font-size: 14px;
}

.login-form input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #ff4d4d;
}

/* Bot贸n */
.login-btn {
    background-color: #f1f1f1;
    width: 100%;
    margin: 10px 0;
    color: black;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #e0e0e0;
}

/* Enlaces */
.login-links {
    margin-top: 20px;
    font-size: 14px;
}

.login-links a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.login-links a:hover {
    color: #ff4d4d;
    text-decoration: underline;
}

/* Mensaje de error */
.error-msg {
    color: red;
    margin-bottom: 15px;
    font-size: 14px;
}



/* ----------------------- */
/*  SLIDER FONDO REGISTER  */
/* ----------------------- */
        .background-slider {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            overflow: hidden;
            z-index: -2;
        }

        .slider-image {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            animation: slideFade 20s infinite;
        }

        .slider-image:nth-child(1) {
            background-image: url('../img/banner-bg.jpg');
            animation-delay: 0s;
        }

        .slider-image:nth-child(2) {
            background-image: url('../img/intro-bg.jpg');
            animation-delay: 5s;
        }

        .slider-image:nth-child(3) {
            background-image: url('../img/banner-bg.jpg');
            animation-delay: 10s;
        }

        .slider-image:nth-child(4) {
            background-image: url('../img/intro-bg.jpg');
            animation-delay: 15s;
        }

        @keyframes slideFade {
            0% { opacity: 0; }
            5% { opacity: 1; }
            25% { opacity: 1; }
            30% { opacity: 0; }
            100% { opacity: 0; }
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: -1;
        }

        /* Asegura que login-wrapper esté sobre el fondo */
        .login-wrapper {
            position: relative;
            z-index: 1;
        }



/* ------------------------------------------ */
/*    DISEÑO RESPONSIVO EN REGISTRO Y LOGIN   */
/* ------------------------------------------ */
@media (max-width: 480px) {
    body.login-body {
        padding: 10px;
        justify-content: center;
    }

    .login-container {
        padding: 25px 15px;
        box-shadow: none;
        border-radius: 10px;
        margin: 0;
    }

    .login-box h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .login-form label {
        font-size: 13px;
    }

    .login-form input {
        font-size: 14px;
    }

    .login-btn {
        font-size: 15px;
    }

    .login-links {
        font-size: 13px;
        flex-direction: column;
        gap: 6px;
        display: flex;
        align-items: center;
    }

    .login-links span {
        display: none;
    }

    .error-msg {
        font-size: 13px;
    }
}




/* -------------------------------------------------------------------------------- */
