/* ===== RESET ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ===== FONS COMPLET ===== */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #38a3c1 100%);
}


/* ===== CONTENIDOR DEL LOGIN ===== */
.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== TARGETA ===== */
.login-card {
    width: 360px;
    background: white;

    padding: 35px 28px; /* ← ajust millorat */
    border-radius: 12px;
    margin: 0 auto; /* ← assegura centració perfecta */

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    text-align: center;
    box-sizing: border-box; /* ← EVITA descuadres */
}

/* ===== LOGO ===== */
.login-logo img {
    width: 95px;
    height: auto;
    margin-bottom: 10px;
}

.login-logo h2 {
    margin: 0;
    font-size: 18px;
}

/* ===== TÍTOL PETIT ===== */
.login-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ===== INPUTS ===== */
.input-group {
    width: 100%;
    display: flex;
    justify-content: center;

    margin-bottom: 18px; /* ← separació vertical ideal */
}


.input-group input {
    width: 100%;
    max-width: 100%;   /* ← assegura que no sobresurten */
    padding: 10px 12px;

    border: 1px solid #ccc;
    border-radius: 6px;

    font-size: 14px;
    outline: none;
    box-sizing: border-box; /* ← IMPORTANT per centració exacta */
}


.input-group input:focus {
    border-color: #2c7ea1;
}

/* ===== BOTÓ ===== */
.btn-primary {
    width: 100%;
    padding: 10px;
    background: #8ab6c2;
    border: none;
    border-radius: 6px;

    color: white;
    font-size: 15px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #76a8b5;
}

/* ===== ENLLAÇOS ===== */
.login-links {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

.login-links a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
}
