/* Copiato da tema/css/login.css per la pagina di login */

/* Classe per nascondere elementi avanzati */
.advanced-no {
    display: none !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #050505;
    line-height: 1.34;
    font-size: 14px;
    min-height: 100vh;
}

.header {
    background: #1e3a8a;
    border-bottom: 1px solid #1e3a8a;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section { display: flex; align-items: center; }
.logo { height: 40px; width: auto; }
.logo-text { color: #ffffff; font-size: 18px; font-weight: 600; margin-left: 8px; }

.login-section { display: flex; align-items: center; }
.login-form { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: flex; align-items: center; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { color: #ffffff; font-size: 12px; font-weight: 500; }
.form-group input { padding: 8px 12px; border: 1px solid #dddfe2; border-radius: 4px; font-size: 14px; width: 160px; background: #ffffff; }
.form-group input:focus { outline: none; border-color: #1877f2; box-shadow: 0 0 0 2px #e7f3ff; }

.btn-login { background: #42a72a; color: #ffffff; border: none; border-radius: 4px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; height: 32px; margin-top: 16px; }
.btn-login:hover { background: #3a9a24; }

.login-links { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; color: #ffffff; font-size: 12px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.forgot-password { color: #ffffff; text-decoration: none; font-size: 12px; }
.forgot-password:hover { text-decoration: underline; }

.main-content { padding: 40px 0; min-height: calc(100vh - 120px); }
.content-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.info-section { padding-right: 40px; }
.info-section H1,
.info-section H2,
.info-section h1,
.info-section h2 {
    color: #1877f2 !important;
}
.main-title { font-size: 28px; font-weight: 600; color: #050505; line-height: 1.2; margin-bottom: 20px; }
.content-blue .main-title-blu,
.content-blue .main-title-blu *,
.content-blue .info-section .main-title-blu,
.content-blue .info-section .main-title-blu * {
    color: #1877f2 !important;
}
.content-blue .main-title-blu h1,
.content-blue .main-title-blu h2,
.content-blue .main-title-blu H1,
.content-blue .main-title-blu H2,
.content-blue .info-section .main-title-blu h1,
.content-blue .info-section .main-title-blu h2,
.content-blue .info-section .main-title-blu H1,
.content-blue .info-section .main-title-blu H2 {
    color: #1877f2 !important;
    display: inline;
}
/* Regola aggiuntiva per garantire che gli H1 e H2 dentro .main-title-blu siano blu */
.content-container.content-blue .info-section .main-title.main-title-blu H1,
.content-container.content-blue .info-section .main-title.main-title-blu H2,
.content-container.content-blue .info-section p.main-title.main-title-blu H1,
.content-container.content-blue .info-section p.main-title.main-title-blu H2 {
    color: #1877f2 !important;
}
.world-map { margin-top: 40px; position: relative; height: 300px; width: 100%; max-width: 100%; border-radius: 12px; overflow: hidden; }
.world-map-img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; border-radius: 12px; }

.signup-section { display: flex; justify-content: center; }
.signup-container { background: #ffffff; border-radius: 8px; padding: 24px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; }
.signup-title { font-size: 24px; font-weight: 600; color: #050505; margin-bottom: 8px; }
.signup-subtitle { font-size: 14px; color: #65676b; margin-bottom: 24px; }
.signup-form { display: flex; flex-direction: column; gap: 16px; }
.signup-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.signup-form .form-group label { color: #050505; font-size: 14px; font-weight: 500; }
.signup-form .form-group input { padding: 12px 16px; border: 1px solid #dddfe2; border-radius: 6px; font-size: 16px; width: 100%; background: #ffffff; transition: border-color 0.2s ease; }
.signup-form .form-group input:focus { outline: none; border-color: #1877f2; box-shadow: 0 0 0 2px #e7f3ff; }
.error-message { color: #e41e3f; font-size: 12px; margin-top: 4px; display: none; }
.form-error { background: #e41e3f; color: #ffffff; padding: 12px; border-radius: 6px; margin-top: 16px; font-size: 14px; text-align: center; }
.btn-signup { background: #42a72a; color: #ffffff; border: none; border-radius: 6px; padding: 12px 16px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; margin-top: 8px; }
.btn-signup:hover { background: #3a9a24; }
.signup-footer { margin-top: 24px; text-align: center; padding-top: 16px; border-top: 1px solid #dddfe2; }
.signup-footer p { color: #65676b; font-size: 14px; }
.signup-footer a { color: #1877f2; text-decoration: none; font-weight: 500; }
.signup-footer a:hover { text-decoration: underline; }
.footer { background: #ffffff; border-top: 1px solid #dddfe2; padding: 16px 0; margin-top: auto; clear: both; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-container + .footer-container { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e6eb; }
.footer-left { color: #65676b; font-size: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.footer-left span { color: #65676b; font-size: 12px; }
.footer-left .copyright { color: #65676b; font-size: 12px; }
.footer-left .footer-link { color: #65676b; text-decoration: none; font-size: 12px; }
.footer-left .footer-link:hover { text-decoration: underline; }
.footer-left a { color: #65676b; text-decoration: none; font-size: 12px; }
.footer-left a:hover { text-decoration: underline; }
.footer-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #65676b; font-size: 12px; }
.footer-right .footer-link { color: #65676b; text-decoration: none; font-size: 12px; }
.footer-right .footer-link:hover { text-decoration: underline; }
.footer-right a { color: #65676b; text-decoration: none; font-size: 12px; }
.footer-right a:hover { text-decoration: underline; }
.footer-right span { color: #65676b; font-size: 12px; }
.footer-link { color: #65676b; text-decoration: none; font-size: 12px; }
.footer-link:hover { text-decoration: underline; }
.copyright { color: #65676b; font-size: 12px; }
.separator { color: #65676b; font-size: 12px; }
.language-selector { padding: 4px 8px; border: 1px solid #dddfe2; border-radius: 4px; background: #ffffff; font-size: 12px; color: #050505; }

@media (max-width: 1024px) { .content-container { gap: 40px; } .info-section { padding-right: 20px; } .main-title { font-size: 24px; } }
@media (max-width: 768px) { .header-container { flex-direction: column; gap: 16px; padding: 16px; } .form-row { flex-direction: column; align-items: stretch; gap: 8px; } .form-group input { width: 100%; } .login-links { flex-direction: column; align-items: flex-start; gap: 8px; } .content-container { grid-template-columns: 1fr; gap: 32px; } .info-section { padding-right: 0; text-align: center; min-width: 0; overflow: hidden; } .main-title { font-size: 20px; } .world-map { height: auto; width: 100%; min-width: 0; } .world-map-img { width: 100%; height: auto; max-width: 100%; object-fit: unset; } .signup-container { max-width: 100%; } .footer-container { flex-direction: column; text-align: center; gap: 12px; } }
@media (max-width: 480px) { .header { padding: 12px 0; } .main-content { padding: 24px 0; } .content-container { padding: 0 12px; } .signup-container { padding: 20px 16px; } .main-title { font-size: 18px; } .signup-title { font-size: 20px; } .form-group input { font-size: 16px; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.signup-container { animation: fadeIn 0.6s ease-out; }

.btn-login:focus, .btn-signup:focus { outline: 2px solid #1877f2; outline-offset: 2px; }
.btn-login:disabled, .btn-signup:disabled { opacity: 0.6; cursor: not-allowed; }
.signup-form .form-group input:hover { border-color: #1877f2; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
