/* registrazione.css - Specifico per il Modulo di Registrazione iniettato nella Landing Page */

.container {
    max-width: 480px;
    width: 100%;
    min-height: 482px;
    margin: 0 auto;
    padding: 40px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(138, 3, 3, 0.15);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.container h1 {
    color: #ff1a1a;
    font-size: 1.8em;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
    text-transform: uppercase;
}

#step-oauth p,
#step-dati p,
#step-verifica p {
    color: #888;
    font-size: 0.95em;
    margin-bottom: 25px;
}

.divider {
    margin: 20px 0;
    color: #555;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.divider-dati {
    margin: 15px 0 20px 0;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: #222;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

#regForm {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #aaa;
    font-size: 0.85em;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.label-center {
    text-align: center;
    margin-bottom: 12px;
}

.label-with-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.label-with-icon label {
    margin-bottom: 0;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: #aaa;
}

.info-msg-box {
    display: none;
    margin-bottom: 8px;
    padding: 8px 10px;
    background-color: rgba(136, 136, 136, 0.1);
    border-left: 3px solid #666;
    color: #999;
    font-size: 0.8em;
    border-radius: 3px;
    line-height: 1.4;
    text-align: left;
    animation: fadeInSlide 0.3s ease-in-out;
}

.info-msg-box span {
    display: block;
}

.info-msg-box .age-requirement {
    margin-top: 12px;
    margin-bottom: 12px;
}

.info-msg-box .warning-text {
    color: #ff1a1a;
    font-weight: bold;
    margin-top: 3px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.form-group input.input-error {
    border-color: #ff1a1a !important;
    box-shadow: 0 0 8px rgba(255, 26, 26, 0.6) !important;
}

.input-center-text {
    text-align: center;
    font-size: 1.5em !important;
    letter-spacing: 8px;
    font-weight: bold;
}

/* ================================
   STILE SELETTORI DATA DI NASCITA
   ================================ */
.date-select-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.date-select-group select {
    flex: 1;
    padding: 12px 10px 12px 15px; /* Aumentato padding sinistro a 15px per allineamento testo */
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95em;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box; /* Aggiunto per assorbire i padding interni ed evitare che vadano a capo */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23888888%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

.date-select-group select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.date-select-group select.input-error {
    border-color: #ff1a1a !important;
    box-shadow: 0 0 8px rgba(255, 26, 26, 0.6) !important;
}

.date-select-group select option {
    background-color: #111;
    color: #fff;
}

/* Gestione icona occhio password */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px; /* Spazio per l'icona */
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background-color: #8a0303;
    border: 1px solid #ff1a1a;
    border-radius: 5px;
    color: #ffffff;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(138, 3, 3, 0.5);
    box-sizing: border-box;
}

.btn-submit:hover:not(:disabled) {
    background-color: #ff1a1a;
    color: #050505;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.7);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-oauth {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0;
    margin-bottom: 12px;
    border-radius: 6px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-sizing: border-box;
    border: 1px solid #333;
}

.btn-oauth img {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-oauth span {
    width: 100%;
    text-align: center;
    padding: 0 40px;
    box-sizing: border-box;
    white-space: nowrap;
    color: inherit;
}

.btn-oauth:hover {
    background-color: #222;
    border-color: #555;
    color: #fff;
}

.btn-oauth.btn-google {
    background-color: #ffffff;
    color: #333333;
    border-color: #ffffff;
}

.btn-oauth.btn-google:hover {
    background-color: #f1f1f1;
    border-color: #f1f1f1;
    color: #111111;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-oauth.btn-facebook {
    background-color: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.btn-oauth.btn-facebook:hover {
    background-color: #166fe5;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.4);
}

.btn-oauth.btn-manual {
    background-color: #161616;
    border-color: #333;
    color: #fff;
}

.btn-oauth.btn-manual:hover {
    background-color: #222;
    border-color: #8a0303;
    color: #fff;
}

.oauth-greeting-box {
    background-color: rgba(20, 80, 20, 0.2);
    border: 1px solid #2e7d32;
    border-left: 3px solid #00ff00;
    padding: 14px 16px;
    margin-bottom: 25px;
    color: #81c784;
    font-size: 0.95em;
    border-radius: 4px;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
    display: none;
}

.oauth-greeting-box b {
    color: #00ff00;
}

.btn-back {
    background-color: transparent;
    border: 1px solid #333;
    color: #999;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back:hover {
    background-color: #161616;
    border-color: #ff1a1a;
    color: #fff;
}

.field-alert {
    display: none;
    margin-top: 6px;
    padding: 6px 10px;
    background-color: rgba(255, 26, 26, 0.15);
    border-left: 3px solid #ff1a1a;
    color: #ff8080;
    font-size: 0.8em;
    border-radius: 3px;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #333;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.autocomplete-items div {
    padding: 12px 15px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.95em;
    border-bottom: 1px solid #222;
}

.autocomplete-items div strong {
    color: #ff1a1a;
}

.autocomplete-items div:hover {
    background-color: #222;
    color: #fff;
}

/* ======================================================
   STILE CHECKBOX PRIVACY / TERMINI (CORRETTO E ISOLATO)
   ====================================================== */
.checkbox-group {
    margin-top: 18px;
    margin-bottom: 25px;
    text-align: left;
}

.form-group .checkbox-container,
label.checkbox-container {
    display: flex !important;
    align-items: flex-start !important;
    position: relative;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0 !important;
    padding: 0;
}

.form-group .checkbox-container input[type="checkbox"],
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    margin: 0;
}

.checkbox-container .checkmark {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    background-color: #141414 !important;
    border: 2px solid #666 !important;
    border-radius: 4px;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out;
    position: relative;
    top: 1px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #ffffff !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.checkbox-container input.input-error ~ .checkmark {
    border-color: #ff1a1a !important;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.8) !important;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    width: 5px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.form-group .checkbox-text,
.checkbox-text {
    font-size: 0.8em !important;
    color: #bbb !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.45 !important;
    font-weight: normal !important;
}

.legal-link {
    color: #ff1a1a;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 26, 26, 0.6);
}

.change-email-inline {
    font-size: 0.85em;
    color: #666;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-left: 4px;
}

.change-email-inline:hover {
    color: #ff1a1a;
}

.login-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85em;
}

.login-link a {
    color: #ff1a1a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.alert {
    display: none;
    padding: 8px 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: clamp(0.7em, 1.2vw, 0.85em);
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

#alertBoxReg {
    margin-bottom: 20px;
}

#alertBoxManualReg {
    margin: 0 0 20px 0;
}

.alert.success {
    background-color: rgba(20, 80, 20, 0.4);
    border: 1px solid #2e7d32;
    color: #81c784;
}

.alert.error {
    background-color: rgba(80, 20, 20, 0.4);
    border: 1px solid #c62828;
    color: #ef9a9a;
}

.alert-fixed-wrapper {
    min-height: 44px;
    max-height: 44px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.success-inline-wrapper {
    min-height: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.success-inline {
    color: #81c784;
    font-size: 0.9em;
    font-weight: bold;
    display: none;
}

.input-fixed-wrapper {
    min-height: 70px;
    margin-bottom: 5px !important;
}

.timer-link-wrapper {
    min-height: 20px;
    margin-bottom: 5px;
    text-align: center;
}

.resend-link {
    color: #888;
    font-size: 0.85em;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
    display: none;
}

.resend-link:hover {
    color: #fff;
}

.timer-text {
    color: #888;
    font-size: 0.85em;
    display: none;
}

.timer-text span {
    font-weight: bold;
    color: #aaa;
}

#step-dati {
    display: none;
    animation: fadeInSlide 0.4s ease-in-out;
}

#step-verifica {
    display: none;
    animation: fadeInSlide 0.4s ease-in-out;
    box-sizing: border-box;
}

.verifica-testo {
    margin-top: 0;
    line-height: 1.4;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.verifica-testo-centrata {
    text-align: center;
}

#verifica-email-display {
    color: #ff1a1a;
    font-size: 1.05em;
    line-height: 1.4;
}

#verifica-input-section {
    margin-top: 0;
    text-align: left;
}

.change-email-wrapper {
    margin-top: 15px;
    text-align: center;
    min-height: 20px;
}

.back-link-style {
    color: #666;
    font-size: 0.85em;
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-link-style:hover {
    color: #ff1a1a;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 24px 18px;
        border-radius: 8px;
        min-height: auto;
        margin: 0 auto;
    }

    .container h1 {
        font-size: 1.4em;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    #step-oauth p,
    #step-dati p,
    #step-verifica p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .btn-oauth {
        font-size: 0.8em;
    }

    .btn-oauth img {
        left: 12px;
    }

    .btn-oauth span {
        padding: 0 32px;
    }

    .login-link {
        margin-top: 20px;
        padding-top: 15px;
    }

    .form-group .checkbox-text,
    .checkbox-text {
        font-size: 0.75em !important;
    }
    
    .date-select-group select {
        padding: 10px 5px 10px 10px; /* Aggiunto margine interno sinistro per centratura visiva e respiro su mobile */
        font-size: 0.85em;
    }
}

@media screen and (max-width: 380px) {
    .btn-oauth {
        font-size: 0.72em;
    }

    .btn-oauth span {
        padding: 0 28px;
    }
}