/* /assets/css/forgot-password.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #f7f7f7;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.forgot-password-container {
    width: 100%;
    max-width: 800px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 20px;
    height: auto;
}

.forgot-password-form-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
}

.italian-flag {
    height: 6px;
    width: 60px;
    display: flex;
    margin-bottom: 20px;
}

.flag-green {
    background-color: #009246;
    flex: 1;
}

.flag-white {
    background-color: #f7f7f7;
    flex: 1;
}

.flag-red {
    background-color: #ce2b37;
    flex: 1;
}

.forgot-password-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.forgot-password-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
}

.forgot-password-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
    text-align: left;
    /* Allinea label e input a sinistra */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #009246;
    outline: none;
}

.btn {
    display: inline-block;
    background-color: #009246;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #007a3a;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: #009246;
}

.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.language-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.language-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.language-button.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #009246;
}

.language-button img {
    display: block;
    border-radius: 2px;
}

.background-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.circle-green {
    width: 250px;
    height: 250px;
    background-color: #009246;
    top: -100px;
    right: -80px;
}

.circle-red {
    width: 180px;
    height: 180px;
    background-color: #ce2b37;
    bottom: -70px;
    left: -70px;
}

/* Responsive */
@media (max-width: 480px) {
    .forgot-password-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        height: 100%;
        padding: 25px 20px;
    }

    .forgot-password-logo {
        font-size: 1.8rem;
    }

    .forgot-password-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .forgot-password-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 10px;
    }

    .btn {
        padding: 12px;
    }

    .back-link {
        margin-top: 20px;
    }

    .background-circle {
        display: none;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }
}