@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;

    background-image: url(../img/parque.jpg);
    background-size: 400px;  
    color: #ffffff;
    padding: 20px;
}

label {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

/* Container */
.container {
    width: 100%;
    max-width: 420px;
    padding: 100px 80px;
    text-align: center;
    background: linear-gradient(135deg, #738ce0, #6ca3eb);
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    margin-top: 15%;
}

.container:hover {
    transform: scale(1.01);
}

/* Headings */
.principal {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.secundario {
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 28px;
}

/* Logo */
img {
    max-width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Inputs */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0 18px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #333;
    transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    background-color: #f0faff;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

/* Button */
button {
    width: 100%;
    padding: 14px 20px;
    background-color: #f44336;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #4caf50;
    transform: translateY(-3px);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    background-color: #9e9e9e;
    color: #f0f0f0;
    cursor: not-allowed;
}

/* Paragraph */
p {
    font-size: 1rem;
    margin-top: 18px;
    color: #f5f5f5;
}

/* Error box */
.error {
    background-color: #fce4e4;
    color: #c62828;
    border: 1px solid #f8bbd0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.error-icon {
    margin-right: 10px;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .principal {
        font-size: 2rem;
    }

    .secundario {
        font-size: 1rem;
    }

    input,
    button {
        font-size: 0.95rem;
        padding: 12px;
    }
}
