/*
 * auth.css - Stile condiviso per le pagine non autenticate
 * welcome.php · login.php · register.php · password_reset.php · verify_email.php
 */

 @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

 *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
 
 :root {
     --cyan:     #00c2e0;
     --cyan-dim: #0099cc;
     --red:      #f03a3a;
     --text:     #ffffff;
 }
 
 html, body {
     min-height: 100%;
     background: #0a0a0a;
     color: var(--text);
     font-family: 'DM Sans', sans-serif;
     overflow-x: hidden;
     scrollbar-width: none;
 }
 body::-webkit-scrollbar { display: none; }
 
 /* ── SLIDESHOW ── */
 .bg-slideshow { position: fixed; inset: 0; z-index: 0; }
 .bg-slide {
     position: absolute; inset: 0;
     background-size: cover; background-position: center;
     opacity: 0; transition: opacity 1.6s ease-in-out;
 }
 .bg-slide.active { opacity: 1; }
 .bg-slide-1 { background-image: url('../img/bg1.jpg'); }
 .bg-slide-2 { background-image: url('../img/bg2.jpg'); }
 .bg-slide-3 { background-image: url('../img/bg3.jpg'); }
 .bg-slide-4 { background-image: url('../img/bg4.jpg'); }
 
 .bg-overlay {
     position: fixed; inset: 0; z-index: 1;
     background: linear-gradient(to bottom,
         rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.60) 40%, rgba(0,0,0,0.82) 100%);
 }
 .bg-overlay::after {
     content: ''; position: absolute; inset: 0;
     background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
     opacity: 0.04; pointer-events: none;
 }
 
 /* ── PAGE LAYOUT ── */
 .page { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
 
 header {
     padding: 24px 32px;
     display: flex; align-items: center; justify-content: space-between;
     border-bottom: 1px solid rgba(255,255,255,0.08);
     background: rgba(0,0,0,0.25);
     backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
 }
 .logo {
     font-family: 'Bebas Neue', sans-serif;
     font-size: 1.5rem; letter-spacing: 0.08em;
     color: var(--cyan); text-decoration: none;
 }
 .logo span { color: #fff; }
 .header-nav { display: flex; gap: 12px; align-items: center; }
 
 footer {
     text-align: center; padding: 16px 24px;
     font-size: 0.72rem; color: rgba(255,255,255,0.4);
     letter-spacing: 0.04em;
     background: rgba(0,0,0,0.55);
     backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
 }
 
 main {
     flex: 1; display: flex; align-items: center; justify-content: center;
     padding: 40px 20px;
 }
 main.align-top { align-items: flex-start; padding-bottom: 60px; }
 
 /* ── BUTTONS ── */
 .btn {
     display: inline-flex; align-items: center; justify-content: center;
     padding: 10px 22px; border-radius: 8px;
     font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
     cursor: pointer; text-decoration: none;
     transition: all 0.2s ease; border: none;
 }
 .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
 .btn-ghost:hover { background: rgba(255,255,255,0.06); }
 .btn-primary { background: var(--cyan); color: #000 !important; font-weight: 600; }
 .btn-primary:hover { background: #00d8fa; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,194,224,0.25); }
 .btn-full { width: 100%; padding: 14px; font-size: 1rem; font-weight: 600; border-radius: 10px; font-family: 'DM Sans', sans-serif; margin-top: 4px; }
 
 /* ── CARD ── */
 .card {
     width: 100%; max-width: 420px;
     background: rgba(10,10,10,0.75);
     backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
     border: 1px solid rgba(255,255,255,0.10);
     border-radius: 18px; padding: 40px 36px;
     opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards;
 }
 .card-wide { max-width: 480px; }
 
 .card-eyebrow {
     display: inline-flex; align-items: center; gap: 8px;
     font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em;
     text-transform: uppercase; color: var(--cyan);
     padding: 5px 12px; border: 1px solid rgba(0,194,224,0.25);
     border-radius: 999px; background: rgba(0,194,224,0.06); margin-bottom: 20px;
 }
 .card-eyebrow::before {
     content: ''; width: 5px; height: 5px; border-radius: 50%;
     background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
 }
 .card-eyebrow-error { color: #f87171; border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.06); }
 .card-eyebrow-error::before { background: #f87171; box-shadow: 0 0 6px #f87171; }
 
 .card-icon   { font-size: 3.2rem; margin-bottom: 20px; text-align: center; }
 .card-title  { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; letter-spacing: 0.03em; line-height: 1; margin-bottom: 8px; color: #fff; }
 .card-title .accent     { color: var(--cyan); }
 .card-title .accent-red { color: #f87171; }
 .card-subtitle { font-size: 0.88rem; font-weight: 300; color: rgba(255,255,255,0.6); margin-bottom: 28px; line-height: 1.5; }
 
 /* ── FORM ── */
 .form-group  { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
 .form-label  { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; display: block; }
 .form-row    { display: flex; gap: 14px; }
 .form-row > * { flex: 1; }
 .form-input {
     width: 100%; background: rgba(255,255,255,0.06);
     border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
     padding: 13px 16px; color: #fff;
     font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
     outline: none; transition: border-color 0.2s, background 0.2s;
 }
 .form-input::placeholder { color: rgba(255,255,255,0.35); }
 .form-input:focus { border-color: var(--cyan); background: rgba(0,194,224,0.05); }
 
 /* Password toggle */
 .pwd-wrapper { position: relative; }
 .pwd-wrapper .form-input { padding-right: 44px; }
 .pwd-toggle {
     position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
     background: none; border: none; cursor: pointer; padding: 0;
     color: rgba(255,255,255,0.4); display: flex; align-items: center; line-height: 1;
 }
 .pwd-toggle:hover { color: rgba(255,255,255,0.8); }
 
 /* Field feedback */
 .field-msg { font-size: 0.82em; margin-top: 6px; display: none; padding-left: 2px; }
 
 /* Email wrapper (register) */
 .email-wrapper {
     display: flex; align-items: center;
     background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
     border-radius: 10px; overflow: hidden; transition: border-color 0.2s;
 }
 .email-wrapper:focus-within { border-color: var(--cyan); background: rgba(0,194,224,0.05); }
 .email-wrapper .form-input {
     border: none; background: transparent; border-radius: 0;
     flex: 1; padding-right: 0; min-width: 0;
 }
 .email-wrapper .form-input:focus { box-shadow: none; }
 .email-domain {
     padding: 13px 14px;
     color: var(--cyan-dim); font-weight: 600; font-size: 0.88rem;
     white-space: nowrap; flex-shrink: 0;
     background: rgba(0,153,204,0.08);
     border-left: 1px solid rgba(0,194,224,0.15);
 }
 
 /* ── ALERTS ── */
 .alert-error {
     background: rgba(240,58,58,0.12); border: 1px solid rgba(240,58,58,0.3);
     border-radius: 10px; padding: 12px 16px;
     color: #f87171; font-size: 0.875rem; margin-bottom: 20px; line-height: 1.5;
 }
 .alert-success {
     background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.28);
     border-radius: 10px; padding: 12px 16px;
     color: #10b981; font-size: 0.875rem; margin-bottom: 20px; line-height: 1.5;
 }
 
 /* ── LINKS ── */
 .card-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
 .card-link   { color: var(--cyan-dim); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
 .card-link:hover { color: var(--cyan); }
 .card-domain-note { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 28px; }
 .card-domain-note strong { color: var(--cyan-dim); font-weight: 500; }
 
 /* ── SENT ICON ── */
 .sent-icon { font-size: 3rem; text-align: center; margin-bottom: 16px; }
 
 /* ── ANIMATIONS ── */
 @keyframes fadeUp {
     from { opacity: 0; transform: translateY(20px); }
     to   { opacity: 1; transform: translateY(0); }
 }
 
 /* ── RESPONSIVE ── */
 @media (max-width: 520px) {
     header { padding: 18px 20px; }
     .card  { padding: 28px 20px; border-radius: 14px; }
     .form-row { flex-direction: column; gap: 12px; }
 }
 
 /* ── WELCOME PAGE ── */
 .hero {
     flex: 1; display: flex; flex-direction: column;
     align-items: center; justify-content: center;
     text-align: center; padding: 80px 24px 60px; gap: 0;
 }
 .eyebrow {
     display: inline-flex; align-items: center; gap: 8px;
     font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em;
     text-transform: uppercase; color: var(--cyan);
     padding: 6px 14px; border: 1px solid rgba(0,194,224,0.25);
     border-radius: 999px; background: rgba(0,194,224,0.06); margin-bottom: 36px;
     opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards;
 }
 .eyebrow::before {
     content: ''; width: 6px; height: 6px; border-radius: 50%;
     background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
 }
 .hero-title {
     font-family: 'Bebas Neue', sans-serif;
     font-size: clamp(3.5rem, 10vw, 8rem); line-height: 0.92;
     letter-spacing: 0.01em; margin-bottom: 6px;
     opacity: 0; animation: fadeUp 0.7s ease 0.2s forwards;
     text-shadow: 0 2px 24px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
 }
 .hero-title .accent     { color: var(--cyan); }
 .hero-title .accent-red { color: var(--red); }
 .hero-subtitle-line {
     font-family: 'Bebas Neue', sans-serif;
     font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1;
     letter-spacing: 0.04em; color: #fff; margin-bottom: 40px;
     opacity: 0; animation: fadeUp 0.7s ease 0.3s forwards;
     text-shadow: 0 2px 16px rgba(0,0,0,0.9);
 }
 .hero-desc {
     max-width: 540px; font-size: 1.05rem; font-weight: 300;
     line-height: 1.75; color: #fff; margin-bottom: 52px;
     opacity: 0; animation: fadeUp 0.7s ease 0.4s forwards;
     text-shadow: 0 1px 8px rgba(0,0,0,0.9);
 }
 .hero-desc strong { color: #fff; font-weight: 500; }
 .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards; }
 .btn-cta-primary  { padding: 14px 36px; font-size: 1rem; font-weight: 600; border-radius: 10px; }
 .btn-cta-secondary{ padding: 14px 36px; font-size: 1rem; }
 .strip {
     padding: 32px 24px; display: flex; justify-content: center;
     gap: 48px; flex-wrap: wrap;
     background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.45));
     opacity: 0; animation: fadeUp 0.7s ease 0.7s forwards;
 }
 .stat            { display: flex; flex-direction: column; align-items: center; gap: 4px; }
 .stat-number     { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: #fff; letter-spacing: 0.05em; }
 .stat-label      { font-size: 0.75rem; color: #fff; letter-spacing: 0.1em; text-transform: uppercase; }
 .strip-divider   { width: 1px; background: rgba(255,255,255,0.12); align-self: stretch; }
 .disclaimer      { display: flex; align-items: flex-start; gap: 12px; max-width: 900px; margin: 0 auto; width: 100%; padding: 20px 32px; }
 .disclaimer-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; opacity: 0.5; }
 .disclaimer-text { font-size: 0.72rem; color: #fff; line-height: 1.7; letter-spacing: 0.02em; }
 .disclaimer-text strong { color: #fff; font-weight: 500; }
 
 @media (max-width: 520px) {
     .hero  { padding: 60px 20px 40px; }
     .strip { gap: 32px; padding: 28px 20px; }
     .strip-divider { display: none; }
 }
 /* ═══════════════════════════════════════
    404
 ═══════════════════════════════════════ */
 .error-main {
     flex: 1;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     padding: 40px 24px;
     gap: 16px;
 }
 .error-code {
     font-family: 'Bebas Neue', sans-serif;
     font-size: clamp(120px, 22vw, 220px);
     line-height: 1;
     color: transparent;
     -webkit-text-stroke: 2px rgba(255,255,255,0.12);
     letter-spacing: 0.02em;
     user-select: none;
     margin-bottom: -10px;
 }
 .error-eyebrow {
     font-size: 0.78rem;
     text-transform: uppercase;
     letter-spacing: 0.14em;
     color: var(--cyan);
     font-weight: 600;
 }
 .error-title {
     font-family: 'Bebas Neue', sans-serif;
     font-size: clamp(36px, 8vw, 72px);
     line-height: 1.1;
     color: #fff;
     letter-spacing: 0.02em;
 }
 .error-desc {
     font-size: 0.95rem;
     color: rgba(255,255,255,0.45);
     max-width: 340px;
     line-height: 1.7;
 }
 .error-cta {
     display: flex;
     gap: 12px;
     flex-wrap: wrap;
     justify-content: center;
     margin-top: 8px;
 }
 
 /* ── Checkbox termini (register.php) ── */
 .terms-check-label {
     display: flex;
     align-items: flex-start;
     gap: 10px;
     font-size: 0.85rem;
     color: rgba(255,255,255,0.6);
     cursor: pointer;
     line-height: 1.5;
     margin-bottom: 4px;
 }
 .terms-check-label input[type="checkbox"] {
     width: 16px;
     height: 16px;
     min-width: 16px;
     margin-top: 2px;
     accent-color: var(--cyan);
     cursor: pointer;
     padding: 0;
     border: none;
     background: none;
     appearance: auto;
     -webkit-appearance: auto;
 }
 .terms-link {
     color: var(--cyan);
     text-decoration: none;
 }
 .terms-link:hover { text-decoration: underline; }
 
 .terms-check-label {
     display: flex;
     align-items: flex-start;
     gap: 10px;
     font-size: .88rem;
     color: rgba(255,255,255,0.65);
     cursor: pointer;
     margin-top: 4px;
     margin-bottom: 4px;
 }
 .terms-check-label input[type="checkbox"] {
     width: 16px;
     height: 16px;
     flex-shrink: 0;
     margin-top: 2px;
     accent-color: var(--cyan);
     cursor: pointer;
 }
 .terms-link {
     color: var(--cyan);
     text-decoration: none;
 }
 .terms-link:hover { text-decoration: underline; }
 
 /* ═══════════════════════════════════════
    MODALE TERMINI (register.php)
 ═══════════════════════════════════════ */
 .terms-modal-overlay {
     display: none;
     position: fixed; inset: 0; z-index: 9999;
     background: rgba(0,0,0,0.82);
     backdrop-filter: blur(6px);
     align-items: center; justify-content: center;
     padding: 16px;
 }
 .terms-modal-overlay.open { display: flex; }
 .terms-modal {
     background: rgba(18,18,18,0.98);
     border: 1px solid rgba(255,255,255,0.10);
     border-radius: 16px;
     width: 100%; max-width: 560px;
     max-height: 82vh;
     display: flex; flex-direction: column;
     box-shadow: 0 20px 60px rgba(0,0,0,0.7);
 }
 .terms-modal-header {
     display: flex; justify-content: space-between; align-items: center;
     padding: 18px 20px;
     border-bottom: 1px solid rgba(255,255,255,0.08);
     font-weight: 600; font-size: .95rem; color: #fff;
     flex-shrink: 0;
 }
 .terms-modal-close {
     background: none; border: none; color: rgba(255,255,255,0.5);
     cursor: pointer; font-size: 1rem; padding: 4px;
     transition: color .15s;
 }
 .terms-modal-close:hover { color: #fff; }
 .terms-modal-body {
     flex: 1; overflow-y: auto;
     padding: 20px;
     font-size: .88rem; line-height: 1.7;
     color: rgba(255,255,255,0.75);
     scrollbar-width: thin;
 }
 .terms-modal-body h3 {
     font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
     color: var(--cyan); margin: 18px 0 8px; font-weight: 600;
 }
 .terms-modal-body h3:first-child { margin-top: 0; }
 .terms-modal-body p { margin-bottom: 8px; }
 .terms-modal-body ul {
     padding-left: 18px; margin: 0;
     display: flex; flex-direction: column; gap: 6px;
 }
 .terms-modal-footer {
     display: flex; gap: 10px; padding: 16px 20px;
     border-top: 1px solid rgba(255,255,255,0.08);
     flex-shrink: 0;
 }
 .terms-modal-footer .btn { flex: 1; padding: 10px; font-size: .88rem; }
 .terms-modal-btn {
     background: none; border: none; padding: 0;
     color: var(--cyan); cursor: pointer;
     font-family: inherit; font-size: inherit;
     text-decoration: underline;
 }
 .terms-modal-btn:hover { color: #00d8fa; }
 
 /* ═══════════════════════════════════════
    INFO / TERMS LAYOUT (non-auth context)
 ═══════════════════════════════════════ */
 .terms-auth-wrapper {
     position: relative; z-index: 2;
     max-width: 680px; width: 100%;
     margin: 0 auto;
     padding: 32px 16px 60px;
     display: flex; flex-direction: column; gap: 20px;
 }
 .terms-auth-wrapper .info-header { text-align: center; padding: 8px 0 4px; }
 .terms-auth-wrapper .info-header h1 {
     font-family: 'Bebas Neue', sans-serif;
     font-size: 2rem; color: #fff; margin-bottom: 8px;
 }
 .terms-auth-wrapper .info-header p { font-size: 0.88rem; color: rgba(255,255,255,0.45); }
 .terms-auth-wrapper .info-card {
     background: rgba(255,255,255,0.04);
     border: 1px solid rgba(255,255,255,0.09);
     border-radius: 18px; overflow: hidden;
     box-shadow: 0 8px 32px rgba(0,0,0,0.45);
 }
 .terms-auth-wrapper .info-card-header {
     display: flex; align-items: center; gap: 12px;
     padding: 16px 22px 14px;
     border-bottom: 1px solid rgba(255,255,255,0.07);
 }
 .terms-auth-wrapper .info-card-icon  { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
 .terms-auth-wrapper .info-card-title { font-size: 0.93rem; font-weight: 600; color: #fff; }
 .terms-auth-wrapper .info-card-body  {
     padding: 18px 22px;
     font-size: 0.86rem; line-height: 1.8;
     color: rgba(255,255,255,0.6);
 }
 .terms-auth-wrapper .info-card-body p + p { margin-top: 12px; }
 .terms-auth-wrapper .info-card-body strong { color: rgba(255,255,255,0.85); font-weight: 500; }
 .terms-auth-wrapper .info-card-body a { color: #00c2e0; text-decoration: none; }
 .terms-auth-wrapper .info-card-body a:hover { text-decoration: underline; }
 .terms-auth-wrapper .terms-date {
     margin-top: 12px; font-size: .82rem; color: rgba(255,255,255,0.25);
 }
 .terms-auth-wrapper .info-back {
     text-align: center; padding-top: 4px;
 }
 .terms-auth-wrapper .info-back a {
     color: rgba(255,255,255,0.35); font-size: 0.84rem;
     text-decoration: none; transition: color .15s;
 }
 .terms-auth-wrapper .info-back a:hover { color: rgba(255,255,255,0.65); }
 /* ═══════════════════════════════════════
    INFO / TERMS — classi condivise con style.css
    (valori hardcoded per evitare dipendenza da variabili CSS)
 ═══════════════════════════════════════ */
 .info-wrapper {
     position: relative; z-index: 2;
     max-width: 680px; width: 100%;
     margin: 0 auto;
     padding: 28px 16px 60px;
     display: flex; flex-direction: column; gap: 20px;
 }
 .info-header { text-align: center; padding: 8px 0 4px; }
 .info-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: #fff; margin-bottom: 8px; }
 .info-header p  { font-size: 0.88rem; color: rgba(255,255,255,0.45); }
 .info-card {
     background: rgba(8,8,8,0.72);
     backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
     border: 1px solid rgba(255,255,255,0.09);
     border-radius: 18px; overflow: hidden;
     box-shadow: 0 8px 32px rgba(0,0,0,0.45);
 }
 .info-card-header {
     display: flex; align-items: center; gap: 12px;
     padding: 16px 22px 14px;
     border-bottom: 1px solid rgba(255,255,255,0.07);
 }
 .info-card-icon  { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
 .info-card-title { font-size: 0.93rem; font-weight: 600; color: #fff; }
 .info-card-body  { padding: 18px 22px; font-size: 0.86rem; line-height: 1.8; color: rgba(255,255,255,0.6); }
 .info-card-body p + p { margin-top: 12px; }
 .info-card-body strong { color: rgba(255,255,255,0.85); font-weight: 500; }
 .info-card-body a { color: #0099cc; text-decoration: none; }
 .info-card-body a:hover { color: #00c2e0; text-decoration: underline; }
 .info-back { text-align: center; padding-top: 4px; }
 .info-back a { color: rgba(255,255,255,0.35); font-size: 0.84rem; text-decoration: none; transition: color .15s; }
 .info-back a:hover { color: rgba(255,255,255,0.65); }
 .terms-date { margin-top: 12px; font-size: .82rem; color: rgba(255,255,255,0.25); }