/* ========================================
   ORDO - STILI REGISTRAZIONE (aggiuntivi)
   Richiede: styles_login.css
   ======================================== */

/* Override container per registrazione */
.registration-container {
    max-width: 520px;
}

.registration-container .login-box,
.login-container.registration-container {
    text-align: left;
    padding: 35px 40px;
}

/* Se non c'è login-box, applica direttamente */
.login-container.registration-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 35px 40px;
    display: block;
}

/* Brand e titoli centrati */
.registration-container .brand {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 10px;
}

.registration-container .page-title {
    text-align: center;
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.registration-container .subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form sections */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.form-section h3 {
    font-size: 13px;
    color: #FF6B00;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.form-section h3 i {
    margin-right: 8px;
    width: 18px;
}

/* Input rows (side by side) */
.input-row {
    display: flex;
    gap: 15px;
}

.input-row .input-group {
    flex: 1;
}

/* Password container specifico */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 5px;
    transition: color 0.2s;
    z-index: 2;
    background: none;
    border: none;
}

.password-toggle:hover {
    color: #FF6B00;
}

/* Password strength bar */
.password-strength {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 8px;
    margin-bottom: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-requirements {
    font-size: 11px;
    color: #999;
    margin-bottom: 15px;
}

.password-match {
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 15px;
    min-height: 18px;
}

.password-match i {
    margin-right: 5px;
}

.match-success {
    color: #27ae60;
}

.match-error {
    color: #e74c3c;
}

/* Consensi section */
.consensi-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: none !important;
    margin-top: 10px;
}

.consensi-section h3 {
    margin-bottom: 18px;
}

.consent-item {
    margin-bottom: 15px;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.consent-item.optional {
    opacity: 0.9;
}

/* Custom checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover .checkmark {
    border-color: #FF6B00;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #FF6B00;
    border-color: #FF6B00;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.consent-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.consent-text a {
    color: #FF6B00;
    text-decoration: none;
    font-weight: 500;
}

.consent-text a:hover {
    text-decoration: underline;
}

.consent-text .required {
    color: #e74c3c;
    font-weight: bold;
}

.consent-text small {
    color: #999;
    font-style: italic;
    display: block;
    margin-top: 3px;
}

/* Submit button */
.registration-container button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: #FF6B00;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.registration-container button[type="submit"]:hover:not(:disabled) {
    background: #e55f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.registration-container button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.form-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: center;
}

.form-note .required {
    color: #e74c3c;
}

/* Login link */
.login-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.login-link p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.login-link a {
    color: #FF6B00;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .login-container.registration-container {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    
    .registration-container .brand {
        font-size: 28px;
    }
    
    .registration-container .page-title {
        font-size: 18px;
    }
    
    .consent-text {
        font-size: 12px;
    }
}

.field-hint {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0 2px;
}

.field-hint .fa-info-circle {
    color: #FF6B00;
    margin-right: 4px;
}

.spam-hint {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 10px 0 4px;
}

.spam-hint .fa-envelope {
    color: #FF6B00;
    margin-right: 4px;
}
