/* ==========================================================================
   RESET LARGHEZZE TEMA MOODLE
   ========================================================================== */
body.pswr #page,
body.pswr #page-content,
body.pswr #region-main-box,
body.pswr #region-main,
body.pswr .loginwrapper,
body.pswr .login-container,
body.pswr .card,
body.pswr .card-body {
    max-width: 1000px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   LAYOUT DI SFONDO E CONTAINER PRINCIPALE
   ========================================================================== */
body.pswr #page-content,
body.pswr #page {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 85vh !important;
}

body.pswr .psw-reset-container {
    width: 100% !important;
    max-width: 950px !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   GRIGLIA A DUE COLONNE E STILI COMUNI DELLE CARD
   ========================================================================== */
body.pswr .grid-two-columns {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    body.pswr .grid-two-columns {
        flex-direction: column !important;
    }
}

body.pswr .card-box {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    padding: 30px !important;
    border-radius: 16px !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.pswr .card-box h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    text-align: center !important;
    margin-bottom: 15px !important;
}

/* ==========================================================================
   CARD SINISTRA: FORM DI RESET (CORNICE BLU)
   ========================================================================== */
body.pswr .card-box.left-box {
    border: 2px solid #0b4c6f !important;
    transition: border-color 0.2s ease !important;
}

body.pswr .card-box.left-box:hover {
    border-color: #083751 !important;
}

body.pswr .left-box p.description-text {
    color: #2d3748 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    font-weight: 600;
    margin-bottom: 15px;
}

body.pswr .form-group {
    margin-bottom: 12px;
}

body.pswr span.help-text {
    color: #4a5568 !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

body.pswr .form-control {
    background-color: #ffffff !important;
    border: 2px solid #718096 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    color: #1a202c !important;
    width: 100%;
}

body.pswr .form-control:focus {
    border-color: #0b4c6f !important;
    box-shadow: 0 0 0 3px rgba(11, 76, 111, 0.25) !important;
    outline: none !important;
}

/* Pulsante Invia Form (Blu) */
body.pswr #btn_submit,
body.pswr .btn-submit {
    background-color: #0b4c6f !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(11, 76, 111, 0.25) !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
    cursor: pointer;
}

body.pswr #btn_submit:hover,
body.pswr .btn-submit:hover {
    background-color: #083751 !important;
}

/* ==========================================================================
   CARD DESTRA: SUPPORTO TICKET (CORNICE ROSSA)
   ========================================================================== */
body.pswr .right-box.support-btn-card {
    text-decoration: none !important;
    align-items: center !important;
    text-align: center !important;
    border: 2px solid #d9363e !important;
    background-color: #fffaf0 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

body.pswr .right-box.support-btn-card:hover {
    background-color: #ffffff !important;
    border-color: #b8282f !important;
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

body.pswr .support-title {
    color: #1a202c !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

body.pswr .support-subtitle {
    color: #4a5568 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

body.pswr .support-icon-wrapper {
    font-size: 70px !important;
    color: #d9363e !important;
    line-height: 1 !important;
    margin: 15px 0 !important;
}

body.pswr .support-action {
    color: #ffffff !important;
    background-color: #d9363e !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-shadow: 0 4px 10px rgba(217, 54, 62, 0.25) !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    transition: background-color 0.2s ease !important;
}

body.pswr .right-box.support-btn-card:hover .support-action {
    background-color: #b8282f !important;
}

body.pswr .support-note {
    color: #2d3748 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* ==========================================================================
   PULSANTE INFERIORE CENTRALE (RITORNO AL LOGIN)
   ========================================================================== */
body.pswr .bottom-action {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

body.pswr #btn_return,
body.pswr .btn-secondary-custom {
    display: inline-block !important;
    width: 100% !important;
    max-width: 400px !important;
    background-color: #666c79 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

body.pswr #btn_return:hover,
body.pswr .btn-secondary-custom:hover {
    background-color: #515660 !important;
    color: #ffffff !important;
}