* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../../assets/img/imgcarrusel1.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

/* Botón superior izquierdo */
.back-button {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #f39c12; /* Color naranja/dorado */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Logo */
.main-logo {
    width: 180px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1); /* Convierte a blanco si es oscuro */
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    background-color: white;
    font-size: 1rem;
    outline: none;
}

/* Botón Ingresar */
.btn-ingresar {
    background-color: #800000; /* Rojo oscuro/vino */
    color: white;
    border: 1px solid #f39c12;
    padding: 12px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-ingresar:hover {
    background-color: #a00000;
}

/* Divisor "o" */
.divider {
    position: relative;
    margin: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    padding: 0 10px;
}

/* Botón Google */
.btn-google {
    background-color: white;
    color: black;
    border: none;
    padding: 10px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-google img {
    height: 20px;
}

/* Enlaces inferiores */
.footer-links {
    margin-top: 25px;
    font-size: 0.9rem;
}

.footer-links p {
    margin-bottom: 10px;
}

.accent {
    color: #f39c12; /* Dorado */
    text-decoration: none;
    font-weight: bold;
}

.accent:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 575.98px) {
    body {
        padding: 20px 0;
    }

    .login-container {
        max-width: 95%;
        padding: 18px;
    }

    .main-logo {
        width: 140px;
        margin-bottom: 24px;
    }

    .input-group label {
        font-size: 0.85rem;
    }

    .input-group input,
    .btn-ingresar,
    .btn-google {
        font-size: 0.95rem;
    }

    .btn-ingresar,
    .btn-google {
        padding: 10px 16px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .login-container {
        max-width: 420px;
        padding: 20px;
    }

    .main-logo {
        width: 150px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .login-container {
        max-width: 480px;
        padding: 24px;
    }

    .main-logo {
        width: 160px;
    }

    .btn-ingresar,
    .btn-google {
        padding: 12px 18px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .login-container {
        max-width: 520px;
        padding: 26px;
    }

    .main-logo {
        width: 170px;
    }
}

@media (min-width: 1200px) {
    .login-container {
        max-width: 560px;
        padding: 28px;
    }

    .main-logo {
        width: 180px;
    }
}