/* Importar fuente moderna */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* Estilos globales */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Contenedor principal */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

/* Caja de login */
.login-container {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 380px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Títulos */
.login-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ff4081;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 1rem;
    color: #777;
    margin-bottom: 25px;
}

/* Inputs */
.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

.input-group input:focus {
    border-color: #ff4081;
    outline: none;
    box-shadow: 0px 0px 8px rgba(255, 64, 129, 0.3);
}

/* Botón de acceso */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff4081, #ff80ab);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.login-btn:hover {
    background: linear-gradient(135deg, #d81b60, #f50057);
    transform: scale(1.05);
}

/* Mensaje de error */
#error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Adaptabilidad para móviles */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 25px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 0.95rem;
    }

    .input-group label {
        font-size: 0.85rem;
    }

    .input-group input {
        font-size: 0.95rem;
    }

    .login-btn {
        font-size: 1rem;
    }
}
