body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #e9eee7;
}

.layout {
    display: flex;
    height: 100vh;
}

/* ---- LEFT PANEL ---- */

.left-panel {
    position: relative;
    flex: 1.2;
    background: linear-gradient(140deg, #1a6f3b, #0f4424, #2fa15c);
    background-size: 200% 200%;
    animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.55)
    );
}

.left-content {
    position: relative;
    color: white;
    padding: 4rem;
    margin-top: 15vh;
    max-width: 80%;
}

.big-logo {
    width: 200px;
    margin-bottom: 2rem;
}

.left-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.left-content p {
    font-size: 1.1rem;
    margin-top: 1rem;
    opacity: 0.85;
}

/* ---- RIGHT PANEL ---- */

.right-panel {
    flex: 1;
    background: #f8faf7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 380px;
    padding: 3rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: fadeIn 0.5s ease-out;
}

.login-card h2 {
    margin: 0;
    color: #1a6f3b;
    font-weight: 700;
    font-size: 1.9rem;
}

.subtitle {
    margin-top: .4rem;
    font-size: .95rem;
    color: #4a4f4d;
}

/* ---- FORM ---- */

label {
    display: block;
    font-weight: 600;
    margin-top: 1.5rem;
    color: #2c2c2c;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 2px solid #dce6df;
    background: #f3f6f4;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus {
    background: #ffffff;
    border-color: #1a6f3b;
    outline: none;
}

.remember {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .9rem;
    color: #333;
}

/* ---- BUTTON ---- */

.login-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background: #1a6f3b;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.login-btn:hover {
    background: #14562e;
    transform: translateY(-2px);
}

.forgot-link {
    margin-top: 1rem;
    width: 100%;
    background: none;
    border: none;
    color: #1a6f3b;
    font-size: .9rem;
    cursor: pointer;
    text-align: left;
}

/* ---- ERRORE ---- */

.errore-box {
    margin-top: 1rem;
    padding: .8rem;
    background: rgba(255, 0, 0, 0.12);
    color: #a60000;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
}

/* Animazione fade */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */

@media(max-width: 900px) {
    .left-panel { display: none; }
    .right-panel {
        flex: 1;
        padding: 2rem;
    }
    .login-card {
        width: 90%;
        max-width: 460px;
    }
}
