/* ===== PAGINE AUTENTICAZIONE (login / registrati / profilo) ===== */
.auth_body {
    min-height: calc(100vh - 40px);
    background-color: #f4ecd8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.auth_card {
    display: flex;
    width: 100%;
    max-width: 880px;
    background-color: #fffdf7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(12, 72, 39, 0.18);
}

/* pannello con la rana */
.auth_lato {
    flex: 1;
    min-width: 0;
    position: relative;
    background-color: #0c4827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    overflow: hidden;
}
.auth_lato::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('immagini/rana.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 340%;   /* prima era "cover": numero più alto = rana più grande */
    opacity: 0.32;
}
.auth_lato_contenuto {
    position: relative;
    z-index: 1;
}
.auth_lato h2 {
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(24px, 3vw, 34px);
    color: #e0c56b;
    margin-bottom: 14px;
    line-height: 1.15;
}
.auth_lato p {
    color: #f4ecd8;
    font-size: 15px;
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

/* lato del modulo */
.auth_form_lato {
    flex: 1.1;
    min-width: 0;
    padding: 48px 44px;
}
.auth_titolo {
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(26px, 3vw, 36px);
    color: #0c4827;
    margin-bottom: 6px;
}
.auth_sottotitolo {
    color: #5a6b4f;
    font-size: 15px;
    margin-bottom: 28px;
}

.auth_campo {
    margin-bottom: 18px;
}
.auth_campo label {
    display: block;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Jost', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    color: #0c4827;
    margin-bottom: 6px;
}
.auth_campo input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d4c29a;
    border-radius: 10px;
    background-color: #fffdf7;
    font-size: 15px;
    color: #2c2c2c;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth_campo input:focus {
    outline: none;
    border-color: #0c4827;
    box-shadow: 0 0 0 3px rgba(12, 72, 39, 0.12);
}

/* campo password con icona occhio */
.auth_password_wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth_password_wrap input {
    padding-right: 48px;
}
.auth_occhio {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: #9a8c6a;
    font-size: 15px;
    line-height: 1;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.auth_occhio:hover {
    color: #0c4827;
    background-color: rgba(12, 72, 39, 0.10);
}
.auth_occhio:focus {
    outline: none;
    color: #0c4827;
    background-color: rgba(12, 72, 39, 0.10);
}

.auth_riga_doppia {
    display: flex;
    gap: 14px;
}
.auth_riga_doppia .auth_campo {
    flex: 1;
}

.auth_btn {
    width: 100%;
    border: none;
    background-color: #0c4827;
    color: #d4c29a;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Jost', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 14px;
    padding: 13px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}
.auth_btn:hover {
    background-color: #0a3a1e;
}

/* checkbox accettazione privacy */
.auth_privacy_campo {
    margin-bottom: 6px;
}
.auth_privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #5a6b4f;
    line-height: 1.5;
}
.auth_privacy input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #0c4827;
    cursor: pointer;
}
.auth_privacy a {
    color: #0c4827;
    font-weight: bold;
    text-decoration: none;
}
.auth_privacy a:hover {
    text-decoration: underline;
}

.auth_link_riga {
    margin-top: 20px;
    font-size: 14px;
    color: #5a6b4f;
    text-align: center;
}
.auth_link_riga a {
    color: #0c4827;
    font-weight: bold;
    text-decoration: none;
}
.auth_link_riga a:hover {
    text-decoration: underline;
}
.auth_dimenticata {
    display: block;
    text-align: right;
    margin-top: -8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #5a6b4f;
    text-decoration: none;
}
.auth_dimenticata:hover {
    color: #0c4827;
    text-decoration: underline;
}

/* messaggi */
.auth_msg {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.auth_msg_errore {
    background-color: #f7e0e0;
    color: #8a1c1c;
    border: 1px solid #e3b7b7;
}
.auth_msg_ok {
    background-color: #e1efe4;
    color: #0c4827;
    border: 1px solid #b8d8c2;
}
.auth_msg a {
    color: inherit;
    font-weight: bold;
    word-break: break-all;
}

/* ===== PAGINA PROFILO ===== */
.profilo_body {
    min-height: calc(100vh - 40px);
    background-color: #f4ecd8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}
.profilo_card {
    width: 100%;
    max-width: 560px;
    background-color: #fffdf7;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(12, 72, 39, 0.18);
    overflow: hidden;
}
.profilo_testata {
    background-color: #0c4827;
    color: #f4ecd8;
    padding: 40px 40px 32px;
    text-align: center;
}
.profilo_avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: #e0c56b;
    color: #0c4827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 34px;
    margin: 0 auto 16px;
}
.profilo_testata h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 26px;
    margin-bottom: 6px;
}
.profilo_ruolo {
    display: inline-block;
    background-color: #e0c56b;
    color: #0c4827;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Jost', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 999px;
}
.profilo_dati {
    padding: 30px 40px 36px;
}
.profilo_voce {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #ece1c6;
}
.profilo_voce:last-child {
    border-bottom: none;
}
.profilo_voce .et {
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Jost', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    color: #0c4827;
}
.profilo_voce .val {
    color: #2c2c2c;
    font-size: 15px;
}
.profilo_admin {
    margin: 0 40px 30px;
    padding: 16px 18px;
    background-color: #e1efe4;
    border: 1px solid #b8d8c2;
    border-radius: 12px;
    color: #0c4827;
    font-size: 14px;
    line-height: 1.5;
}
.profilo_azioni {
    padding: 0 40px 40px;
}
.profilo_logout {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #d4c29a;
    color: #0c4827;
    text-decoration: none;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Jost', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 14px;
    padding: 13px;
    border-radius: 10px;
    transition: background-color 0.2s;
}
.profilo_logout:hover {
    background-color: #c7b487;
}

/* responsive: pannello rana sopra il modulo */
@media (max-width: 720px) {
    .auth_card {
        flex-direction: column;
        max-width: 440px;
    }
    .auth_lato {
        padding: 36px 24px;
    }
    .auth_form_lato {
        padding: 36px 28px;
    }
}

/* textarea e file input nei form admin */
.auth_textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d4c29a;
    border-radius: 10px;
    background-color: #fffdf7;
    font-size: 15px;
    color: #2c2c2c;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth_textarea:focus {
    outline: none;
    border-color: #0c4827;
    box-shadow: 0 0 0 3px rgba(12, 72, 39, 0.12);
}
.auth_campo input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px dashed #d4c29a;
    border-radius: 10px;
    background-color: #fffdf7;
    font-size: 14px;
    color: #5a6b4f;
    cursor: pointer;
}
.auth_file_attuale {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6b4f;
}