/*
 * VeryESG - pagina registrazione pubblica
 * Struttura standalone compatibile con installazioni senza build Vite.
 */
:root {
    --reg-navy: #111936;
    --reg-navy-2: #172143;
    --reg-yellow: #ffd400;
    --reg-green: #58bd46;
    --reg-blue: #006fa9;
    --reg-text: #172033;
    --reg-muted: #667085;
    --reg-border: #d9e4ee;
    --reg-surface: rgba(255,255,255,.96);
    --reg-shadow: 0 22px 60px rgba(3, 12, 36, .26);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--reg-text);
    background: var(--reg-navy);
}

.register-page { min-height: 100vh; }

.register-hero {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(17, 25, 54, .90) 0%, rgba(17, 25, 54, .72) 42%, rgba(17, 25, 54, .26) 100%),
        var(--register-hero-background);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

.register-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 42px);
    padding: 10px clamp(14px, 2.2vw, 34px);
    position: relative;
    z-index: 2;
}

.register-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 205px;
    min-height: 64px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    text-decoration: none;
    overflow: hidden;
}
.register-brand img {
    display: block;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
}
.register-brand-shield { width: 40px; height: 44px; flex: 0 0 auto; }
.register-wordmark {
    display: flex;
    align-items: baseline;
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1;
    color: #4b4d55;
    font-size: 31px;
    white-space: nowrap;
}
.register-wordmark .green { color: #48bb36; }
.register-wordmark .blue { color: #084dff; }
.register-wordmark .orange { color: #ff9b00; }

.register-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 44px);
    flex: 1;
}
.register-nav a {
    color: rgba(255,255,255,.92);
    font-weight: 650;
    font-size: 17px;
    text-decoration: none;
}
.register-nav a.active,
.register-nav a:hover { color: var(--reg-yellow); }

.register-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.register-login-link {
    min-height: 48px;
    padding: 0 21px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.18);
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
}
.register-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
}
.register-flag {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg,#25a94a 0 33%, #fff 33% 66%, #e43636 66%);
    border: 1px solid rgba(255,255,255,.35);
}

.register-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    align-items: center;
    gap: clamp(34px, 6vw, 88px);
    padding: 34px 0 64px;
}

.register-copy {
    color: #fff;
    max-width: 720px;
    text-shadow: 0 4px 20px rgba(0,0,0,.22);
}
.register-kicker {
    margin: 0 0 12px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--reg-yellow);
}
.register-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1.8px;
}
.register-copy p:not(.register-kicker) {
    max-width: 620px;
    margin: 20px 0 0;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
    color: rgba(255,255,255,.86);
}

.register-card {
    width: 100%;
    border-radius: 24px;
    background: var(--reg-surface);
    box-shadow: var(--reg-shadow);
    padding: clamp(24px, 3.2vw, 38px);
    border: 1px solid rgba(255,255,255,.42);
}
.register-card-head { text-align: center; margin-bottom: 20px; }
.register-card h2 {
    margin: 0;
    color: #213b8f;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}
.register-card-head p {
    margin: 10px 0 0;
    color: var(--reg-muted);
    font-size: 15px;
}

.register-form { display: grid; gap: 16px; }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.register-field label {
    display: block;
    margin: 0 0 7px;
    color: #213b8f;
    font-weight: 800;
    font-size: 15px;
}
.register-field input {
    width: 100%;
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--reg-border);
    background: #fff;
    padding: 0 14px;
    color: var(--reg-text);
    font: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, .04);
}
.register-field input:focus {
    border-color: #80ccff;
    box-shadow: 0 0 0 4px rgba(0, 127, 187, .12);
}
.register-field-error {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.register-consent {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 4px;
    color: #26364c;
    line-height: 1.45;
    font-size: 14px;
    cursor: pointer;
}
.register-consent input {
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: #006fa9;
}

.register-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid #e5edf5;
}
.register-secondary {
    color: #213b8f;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.register-submit {
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: var(--reg-yellow);
    color: #131a2a;
    font: inherit;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.register-submit:hover,
.register-login-link:hover { transform: translateY(-1px); }

.register-errors {
    margin: 0 0 18px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
    padding: 12px 14px;
    font-size: 14px;
}
.register-errors strong { display: block; margin-bottom: 5px; }
.register-errors ul { margin: 0; padding-left: 18px; }

@media (max-width: 980px) {
    .register-header { flex-wrap: wrap; }
    .register-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .register-content {
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 24px;
    }
    .register-copy { text-align: center; margin: 0 auto; }
    .register-copy p:not(.register-kicker) { margin-left: auto; margin-right: auto; }
}

@media (max-width: 620px) {
    .register-content { width: min(100% - 24px, 520px); }
    .register-brand { width: 176px; min-height: 56px; }
    .register-nav { gap: 18px; }
    .register-header-actions { width: 100%; justify-content: flex-end; }
    .register-grid { grid-template-columns: 1fr; }
    .register-actions { flex-direction: column-reverse; align-items: stretch; }
    .register-submit, .register-secondary { width: 100%; text-align: center; justify-content: center; display: inline-flex; align-items: center; }
}

/* PATCH VeryESG - logo ufficiale registrazione, altezza massima 58px */
.register-brand {
    width: auto !important;
    min-width: 214px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.register-brand img {
    display: block;
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    max-width: 214px !important;
    object-fit: contain;
}

@media (max-width: 640px) {
    .register-brand {
        min-width: 192px !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }

    .register-brand img {
        height: 52px !important;
        max-height: 52px !important;
        max-width: 192px !important;
    }
}
/* FINE PATCH VeryESG - logo ufficiale registrazione */



/* PATCH VeryESG registrazione cleanup 20260605 */
.register-form input[type="radio"],
.register-card input[type="radio"],
.register-field input[type="radio"] {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    accent-color: #213b8f;
    display: inline-block !important;
    flex: 0 0 22px !important;
}
.register-form .yes-no-group,
.register-form .radio-group,
.register-form .register-radio-group,
.register-form .sustainability-report-options,
.register-form .boolean-options,
.register-card .yes-no-group,
.register-card .radio-group,
.register-card .register-radio-group,
.register-card .sustainability-report-options,
.register-card .boolean-options {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    flex-wrap: wrap !important;
}
.register-form label:has(input[type="radio"]),
.register-card label:has(input[type="radio"]),
.register-field label:has(input[type="radio"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 18px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
    color: #25364d !important;
}
.register-form label:has(input[type="radio"]) span,
.register-card label:has(input[type="radio"]) span,
.register-field label:has(input[type="radio"]) span {
    display: inline !important;
    white-space: nowrap !important;
}
.register-form input[type="file"],
.register-card input[type="file"],
.register-field input[type="file"] {
    height: auto;
}
/* FINE PATCH VeryESG registrazione cleanup 20260605 */


/* PATCH VeryESG register/company radio fix 20260605 */
.register-form input[type="radio"],
.register-card input[type="radio"] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: 0 0 20px !important;
    accent-color: #132b7a !important;
}
.register-form label:has(input[type="radio"]),
.register-card label:has(input[type="radio"]) {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 112px !important;
    min-height: 54px !important;
    height: auto !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}
/* FINE PATCH VeryESG register/company radio fix 20260605 */

.register-password-help {
    margin: 6px 0 0;
    color: var(--reg-muted);
    font-size: 13px;
    line-height: 1.35;
}
