/* =========================================================
   C.E.S.I - Password dimenticata
   File: /styles/forgot_password.css
   ========================================================= */

.cesi-forgot-page,
.cesi-forgot-page * { box-sizing: border-box; }

.cesi-forgot-page {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    min-height: calc(100vh - 200px);
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cesi-forgot {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    padding: 40px 40px 34px;
}

/* ---------- Header ---------- */
.cesi-forgot__header {
    text-align: center;
    margin-bottom: 26px;
}

.cesi-forgot__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(58, 178, 243, .12);
    color: #3ab2f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.cesi-forgot__title {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d0d0d;
    letter-spacing: -.2px;
}

.cesi-forgot__subtitle {
    margin: 0;
    font-size: .95rem;
    color: #5c6470;
    line-height: 1.5;
}

/* ---------- Alert ---------- */
.cesi-forgot__alert {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: .9rem;
    line-height: 1.5;
    align-items: flex-start;
}

.cesi-forgot__alert i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.cesi-forgot__alert ul {
    margin: 0;
    padding-left: 18px;
}

/* Success (email inviata) */
.cesi-forgot__alert.is-success {
    background: #e6f7ec;
    color: #1a7a3e;
    border-left: 4px solid #22a355;
}
.cesi-forgot__alert.is-success i { color: #22a355; }
.cesi-forgot__alert.is-success strong { color: #0d0d0d; }
.cesi-forgot__alert.is-success em { font-style: italic; color: #4a515b; }
.cesi-forgot__alert.is-success small {
    display: inline-block;
    margin-top: 6px;
    font-size: .82rem;
    color: #4a515b;
}

/* Error (validazione) */
.cesi-forgot__alert.is-error {
    background: #fdecec;
    color: #a11f1f;
    border-left: 4px solid #e63946;
}
.cesi-forgot__alert.is-error i { color: #e63946; }

/* ---------- Form ---------- */
.cesi-forgot__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cesi-forgot__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cesi-forgot__field label {
    font-size: .85rem;
    font-weight: 600;
    color: #333;
}

.cesi-forgot__field .req {
    color: #e63946;
    font-weight: 700;
}

.cesi-forgot__field input {
    padding: 12px 14px;
    border: 1px solid #d6dbe0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #111;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.cesi-forgot__field input:focus {
    outline: none;
    border-color: #3ab2f3;
    box-shadow: 0 0 0 3px rgba(58, 178, 243, .18);
}

/* ---------- Bottoni ---------- */
.cesi-forgot__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.cesi-forgot__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
    text-align: center;
}

.cesi-forgot__btn.is-primary {
    background: #3ab2f3;
    color: #fff;
}
.cesi-forgot__btn.is-primary:hover {
    background: #1a8fcc;
    transform: translateY(-1px);
}

.cesi-forgot__btn.is-ghost {
    background: transparent;
    color: #5c6470;
    border: 1px solid #d6dbe0;
}
.cesi-forgot__btn.is-ghost:hover {
    background: #f4f6f8;
    color: #111;
    border-color: #b6bec6;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
    .cesi-forgot-page { padding: 40px 14px 60px; }
    .cesi-forgot { padding: 30px 22px 26px; border-radius: 12px; }
    .cesi-forgot__title { font-size: 1.3rem; }
    .cesi-forgot__icon { width: 60px; height: 60px; font-size: 1.5rem; }
}