/* Reset general */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

body {
    display: flex;
    flex-direction: column;
}

/* Capçalera - Reaprofitat de styles.css per mantenir estètica */
header {
    background-color: #3b82f6;
    /* Color blau */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 4%;
    height: 15%;
}

.header-info h1 {
    margin: 0;
    font-size: 2.2vw;
    font-weight: normal;
}

.header-info p {
    margin: 2% 0 0 0;
    font-size: 1.2vw;
}

.back-icon {
    font-size: 1.5vw;
    background-color: white;
    border-radius: 50%;
    width: 3.5vw;
    height: 3.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Part principal */
main {
    display: flex;
    width: 100%;
    height: 85%;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    color: #3b82f6;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-login {
    width: 100%;
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 1rem;
    font-weight: bold;
}

.btn-login:hover {
    background-color: #2563eb;
}

.btn-login:active {
    transform: scale(0.98);
}

/* Responsive adjustments for phones/tablets */
@media (max-width: 768px) {
    .header-info h1 {
        font-size: 5vw;
    }

    .header-info p {
        font-size: 3vw;
    }

    .back-icon {
        width: 8vw;
        height: 8vw;
        font-size: 4vw;
    }
}