/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    /* Reemplaza esta URL con la ruta real de tu imagen de fondo */
    background-image: url('../img/chincha-fondo.webp');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
}

/* Capa oscura opcional sobre el fondo para que resalte el formulario */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.title-login {
    background-image: linear-gradient(to right, #f53606 20%, #fee140 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-box {
    background-color: rgba(50, 50, 50, 0.75);
    /* Caja semitransparente oscura */
    padding: 40px 50px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
    text-align: center;
    color: #ff4c68;
    /* Color rosado/rojo del título */
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ffb3b3;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #cccccc;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 2px;
    padding: 0 15px;
}

.input-wrapper i {
    color: #ff4c68;
    font-size: 1.2rem;
}

.input-wrapper input {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.options a {
    color: #cccccc;
    text-decoration: none;
}

.options a:hover {
    color: #ffffff;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cccccc;
}

.btn-submit {
    width: 100%;
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-submit:hover {
    background-image: linear-gradient(120deg, #ecc02f 0%, #d85c39 100%);
}

.register-link {
    text-align: center;
    font-size: 0.85rem;
    color: #cccccc;
}

.register-link a {
    color: #00bcd4;
    /* Color cyan del enlace */
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.footer-text {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #aaaaaa;
    letter-spacing: 0.5px;
}

.footer-text a {
    color: #aaaaaa;
    text-decoration: none;
}

 .btn-submit {
     width: 100%;
     padding: 12px;
     background-color: #3c50e0;
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-size: 1rem;
     transition: background 0.3s;
 }

 .btn-submit:hover {
     background-color: #3346c4;
 }

 .alerta {
     padding: 10px;
     border-radius: 4px;
     margin-bottom: 20px;
     text-align: center;
     font-size: 0.9rem;
 }

 .exito {
     background-color: rgba(16, 185, 129, 0.2);
     color: #10b981;
     border: 1px solid #10b981;
 }

 .error {
     background-color: rgba(220, 53, 69, 0.2);
     color: #dc3545;
     border: 1px solid #dc3545;
 }


.logo{
    width: 200px;
    height: 160px;
}

.centro{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}