/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Sfondo pagina */
body {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Contenitore principale */
.auth-container {
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* Titoli */
.auth-container h2 {
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

/* Etichette */
.auth-container label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #444;
}

/* Input */
.auth-container input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.2s ease;
}

.auth-container input:focus {
    border-color: #8c0605;
    outline: none;
}

/* Pulsante */
.auth-container button {
    width: 100%;
    padding: 15px;
    background: #8c0605;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-container button:hover {
    background: #a31b1a;
}

/* Messaggi */
.auth-container p {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.auth-container p a {
    color: #8c0605;
    text-decoration: none;
    font-weight: bold;
}

/* --- Responsive --- */

/* Tablet (max 1199px) */
@media (max-width: 1199px) {
    .auth-container {
        max-width: 400px;
        padding: 35px;
    }

    .auth-container h2 {
        font-size: 26px;
    }

    .auth-container input,
    .auth-container button {
        font-size: 16px;
        padding: 14px;
    }
}

/* Mobile (max 700px) */
@media (max-width: 700px) {
    body {
        padding: 15px;
    }

    .auth-container {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 10px;
    }

    .auth-container h2 {
        font-size: 24px;
    }

    .auth-container label {
        font-size: 15px;
    }

    .auth-container input {
        font-size: 15px;
        padding: 12px;
    }

    .auth-container button {
        font-size: 17px;
        padding: 14px;
    }

    .auth-container p {
        font-size: 14px;
    }
}

.back {
    margin-top: 50px;
}

.back a {
    text-decoration: none;
    color: #8c0605;
}

.back a:hover {
    text-decoration: underline;
    font-weight: 400;
}