/* Fuente Montserrat - Elegante y moderna */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(120deg, #0f2027, #203a43, #2c5364);
    padding: 20px;
}

h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* Contenedor del Login */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

/* Logo */
.logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

/* Campos de entrada */
.input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 1rem;
}

.input-group i {
    font-size: 18px;
    color: #3498db;
    margin-right: 10px;
}

.input-group input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

/* Botón */
button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

/* Mensaje de error */
.error {
    color: red;
    font-size: 14px;
    margin-bottom: 1rem;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 📱 Media Queries para Responsividad */
@media screen and (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 50px; /* Ajusta según lo necesites */
    }

    .login-wrapper {
        margin-top: 50px; /* Puedes ajustar este valor */
    }

    .login-container {
        width: 90%;
        max-width: 350px;
        padding: 1.5rem;
    }

    .logo {
        max-width: 150px;
    }

    .input-group {
        padding: 8px;
    }

    button {
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        max-width: 300px;
        padding: 1rem;
    }

    .logo {
        max-width: 120px;
    }

    .input-group i {
        font-size: 16px;
    }

    .input-group input {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}