@charset "UTF-8";
/* ==========================================================================
   ITALVERO CAPITAL — Pages d'authentification (design Handy Buddy) (login, register, forgot, reset, OTP)
   Style split-screen : visuel à gauche, formulaire à droite.
   Couleurs et typo du site (tokens injectés par chaque page).
   ========================================================================== */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{-webkit-font-smoothing:antialiased;}
body{
  font-family:var(--font-main,'Plus Jakarta Sans',system-ui,sans-serif);
  background:var(--bg);color:var(--tx);
  min-height:100vh;min-height:100dvh;
  font-size:14px;line-height:1.55;
}
a{text-decoration:none;color:inherit;}
.notranslate{}

/* ── Layout ─────────────────────────────────────────────── */
.auth-split{display:flex;min-height:100vh;min-height:100dvh;}

/* Panneau visuel (gauche) */
.auth-visual{
  display:none;position:relative;width:42%;max-width:640px;flex-shrink:0;
  overflow:hidden;background:var(--ink,#04192a);
}
@media(min-width:1000px){.auth-visual{display:block;}}
.auth-visual img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  animation:authZoom 18s ease-in-out infinite alternate;
}
@keyframes authZoom{from{transform:scale(1);}to{transform:scale(1.06);}}
.auth-visual::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(var(--ink-rgb),.72) 0%,rgba(var(--ink-rgb),.35) 42%,rgba(var(--ink-rgb),.86) 100%);
}
.auth-visual-content{
  position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;
  justify-content:space-between;padding:46px 48px;color:#fff;
}
.auth-brand{display:inline-flex;align-items:center;gap:11px;}
.auth-brand-logo{height:38px;width:auto;max-width:180px;object-fit:contain;filter:brightness(0) invert(1);}
.auth-brand-mark{
  width:42px;height:42px;display:grid;place-items:center;
  background:var(--p);color:var(--acc);
}
.auth-brand-name{font:800 22px/1 var(--font-head);letter-spacing:-.02em;color:#fff;}
.auth-welcome{max-width:420px;}
.auth-welcome h2{
  font:800 clamp(30px,3.2vw,44px)/1.12 var(--font-head);
  letter-spacing:-.03em;color:#fff;margin-bottom:16px;
}
.auth-welcome h2 b{font-weight:800;}
.auth-welcome h2 .light{font-weight:500;opacity:.92;}
.auth-welcome p{font-size:15px;line-height:1.7;color:rgba(255,255,255,.82);max-width:380px;}
.auth-visual-features{display:flex;flex-direction:column;gap:12px;}
.auth-vfeat{display:flex;align-items:center;gap:11px;font-size:13.5px;font-weight:600;color:rgba(255,255,255,.9);}
.auth-vfeat-dot{
  width:26px;height:26px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:var(--acc);
}

/* Panneau formulaire (droite) */
.auth-main{
  flex:1;display:flex;align-items:center;justify-content:center;
  padding:40px 24px;position:relative;background:var(--bg);
}
.auth-card{width:100%;max-width:440px;}

/* En-tête mobile (logo visible quand le panneau gauche est masqué) */
.auth-mobilehead{display:flex;align-items:center;gap:10px;margin-bottom:30px;}
@media(min-width:1000px){.auth-mobilehead{display:none;}}
.auth-mobilehead .auth-brand-name{color:var(--tx);}
.auth-mobilehead .auth-brand-logo{filter:none;}

/* Lien en haut (Not a member? Register) */
.auth-toplink{font-size:13.5px;color:var(--tx2);margin-bottom:26px;}
.auth-toplink a{color:var(--p);font-weight:700;}
.auth-toplink a:hover{text-decoration:underline;}

.auth-h1{font:800 clamp(26px,2.6vw,32px)/1.15 var(--font-head);letter-spacing:-.03em;color:var(--tx);margin-bottom:10px;}
.auth-desc{font-size:14px;color:var(--tx2);line-height:1.65;margin-bottom:28px;}
.auth-desc strong{color:var(--tx);}

/* Champs */
.auth-field{margin-bottom:18px;}
.auth-field-label{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;color:var(--tx);margin-bottom:8px;}
.auth-field-label a{font-size:12.5px;font-weight:600;color:var(--p);}
.auth-field-label a:hover{text-decoration:underline;}
.auth-input{
  width:100%;height:52px;padding:0 16px;
  background:var(--in-bg);border:1.5px solid var(--line);
  color:var(--tx);font-size:14.5px;font-family:inherit;outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
.auth-input::placeholder{color:var(--tx3);}
.auth-input:focus{border-color:var(--p);box-shadow:0 0 0 4px var(--p-light);background:var(--surface);}
.auth-input-wrap{position:relative;}
.auth-input-wrap .auth-input{padding-right:48px;}
.auth-eye{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:38px;height:38px;border:none;background:none;cursor:pointer;color:var(--tx3);
  display:grid;place-items:center;transition:color .15s,background .15s;
}
.auth-eye:hover{color:var(--tx);background:var(--surface2);}

/* Bouton principal */
.auth-btn{
  width:100%;height:52px;border:none;cursor:pointer;
  background:var(--acc);color:var(--on-acc,#071c2c);font:700 13px/1 var(--font-main);
  text-transform:uppercase;letter-spacing:.25px;border:2px solid var(--acc);
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  transition:background .25s,border-color .25s,color .25s,transform .25s;
  margin-top:6px;
}
.auth-btn:hover{background:var(--p);border-color:var(--p);color:var(--on-p,#fff);transform:translateY(-2px);}
.auth-btn:active{transform:translateY(0);}
.auth-btn.secondary{background:transparent;color:var(--tx);border:2px solid var(--line2);box-shadow:none;}
.auth-btn.secondary:hover{border-color:var(--p);background:var(--p);color:var(--on-p,#fff);}

/* Séparateur OR */
.auth-or{display:flex;align-items:center;gap:14px;margin:22px 0;color:var(--tx3);font-size:12px;font-weight:700;letter-spacing:.08em;}
.auth-or::before,.auth-or::after{content:'';flex:1;height:1px;background:var(--line);}

/* Bas de page / bascule */
.auth-switch{text-align:center;font-size:13.5px;color:var(--tx2);margin-top:22px;}
.auth-switch a{color:var(--p);font-weight:700;}
.auth-switch a:hover{text-decoration:underline;}

/* Checkbox CGU */
.auth-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--tx2);line-height:1.5;margin:4px 0 22px;}
.auth-check input{width:18px;height:18px;margin-top:1px;accent-color:var(--p);flex-shrink:0;cursor:pointer;}
.auth-check a{color:var(--p);font-weight:600;}
.auth-check a:hover{text-decoration:underline;}

/* Messages */
.auth-alert{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;font-size:13.5px;font-weight:500;margin-bottom:22px;line-height:1.5;}
.auth-alert svg{flex-shrink:0;margin-top:1px;}
.auth-alert-error{background:rgba(229,62,65,.1);border:1px solid rgba(229,62,65,.3);color:var(--red);}
.auth-alert-success{background:rgba(14,173,105,.1);border:1px solid rgba(14,173,105,.3);color:var(--green);}
.auth-alert-info{background:var(--p-light);border:1px solid var(--p-mid);color:var(--p);}

/* OTP */
.auth-otp-illus{width:64px;height:64px;display:grid;place-items:center;background:var(--p-light);color:var(--p);margin-bottom:22px;}
.auth-otp-row{display:flex;gap:10px;margin:22px 0 26px;}
.auth-otp-box{
  flex:1;height:60px;min-width:0;text-align:center;
  background:var(--in-bg);border:1.5px solid var(--line);
  color:var(--tx);font:700 24px/1 var(--font-main);outline:none;
  transition:border-color .15s,box-shadow .15s;
}
.auth-otp-box:focus{border-color:var(--p);box-shadow:0 0 0 4px var(--p-light);}
.auth-otp-box.filled{border-color:var(--p);background:var(--surface);}
.auth-otp-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.auth-otp-actions .auth-btn{width:auto;min-width:150px;margin-top:0;}
.auth-resend{font-size:13px;color:var(--tx2);}
.auth-resend a{color:var(--p);font-weight:700;}
.auth-resend a:hover{text-decoration:underline;}

/* Steps register */
.auth-steps-bar{display:flex;gap:8px;margin-bottom:22px;}
.auth-step{flex:1;height:4px;border-radius:99px;background:var(--line);transition:background .25s;}
.auth-step.active{background:var(--p);}

/* Barre utilitaire (thème + langue) en haut à droite */
.auth-utils{position:fixed;top:18px;right:18px;z-index:50;display:flex;gap:8px;}
.auth-util-btn{
  width:40px;height:40px;border:1px solid var(--line);
  background:var(--surface);color:var(--tx2);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  transition:border-color .15s,color .15s,background .15s;font-size:12.5px;font-weight:700;
}
.auth-util-btn.wide{width:auto;padding:0 12px;}
.auth-util-btn:hover{border-color:var(--p);color:var(--p);}

/* Popup langue */
.lang-popup{position:fixed;z-index:9999;background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-lg);min-width:205px;max-height:380px;overflow-y:auto;padding:6px;display:none;}
.lang-popup.open{display:block;}
.lang-item{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:13px;font-weight:600;color:var(--tx2);}
.lang-item:hover{background:var(--surface2);color:var(--tx);}
.lang-item.active{background:var(--p-light);color:var(--p);}
.lang-item img{width:20px;height:14px;object-fit:cover;}
.goog-te-banner-frame,.skiptranslate{display:none!important;}
body{top:0!important;}

@media(max-width:480px){
  .auth-main{padding:28px 18px;}
  .auth-otp-box{height:52px;font-size:20px;}
  .auth-otp-actions{flex-direction:column;align-items:stretch;}
  .auth-otp-actions .auth-btn{width:100%;}
  .auth-resend{text-align:center;}
}
@media(prefers-reduced-motion:reduce){
  .auth-visual img{animation:none;}
  *{transition-duration:.01ms!important;}
}

/* ─── KYC : caricamento documenti d'identità ─── */
.auth-card.wide{max-width:560px;}
select.auth-input{appearance:auto;cursor:pointer;}
.kyc-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media(max-width:520px){.kyc-row{grid-template-columns:1fr;gap:0;}}
.kyc-drop{position:relative;display:flex;align-items:center;gap:14px;padding:18px;border:2px dashed var(--line2);background:var(--surface2);color:var(--tx2);cursor:pointer;transition:border-color .2s,background .2s;}
.kyc-drop:hover,.kyc-drop.dragover{border-color:var(--p);background:var(--p-light);}
.kyc-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;}
.kyc-drop:focus-within{border-color:var(--p);box-shadow:0 0 0 4px var(--p-light);}
.kyc-drop-ico{flex:0 0 44px;height:44px;display:flex;align-items:center;justify-content:center;background:var(--p-light);color:var(--p);}
.kyc-drop-txt{font-size:13.5px;font-weight:600;line-height:1.4;}
.kyc-drop.has-file{border-style:solid;border-color:var(--green);background:rgba(14,173,105,.07);}
.kyc-drop.has-error{border-color:var(--red);background:rgba(229,62,65,.07);}
.kyc-file{margin-top:8px;}
.kyc-file-card{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);background:var(--surface);}
.kyc-file-card.ok{border-left:4px solid var(--green);}
.kyc-file-card.bad{border-left:4px solid var(--red);}
.kyc-thumb{flex:0 0 46px;height:46px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--surface3);color:var(--tx2);font-size:11px;font-weight:800;}
.kyc-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.kyc-file-info{min-width:0;display:flex;flex-direction:column;gap:2px;}
.kyc-file-info b{font-size:13px;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.kyc-file-info small{font-size:12px;color:var(--tx3);}
.kyc-ok{color:var(--green);font-weight:700;}
.kyc-err{margin-top:6px;font-size:12.5px;font-weight:600;color:var(--red);}
.kyc-state{text-align:center;padding:10px 0 4px;}
.kyc-state-ico{display:inline-flex;width:64px;height:64px;align-items:center;justify-content:center;background:var(--p-light);color:var(--p);margin-bottom:14px;}
.kyc-state h2{font-size:1.3rem;margin-bottom:8px;color:var(--tx);}
.kyc-state p{color:var(--tx2);font-size:14px;line-height:1.7;margin-bottom:10px;}
.kyc-state-sub{color:var(--tx3)!important;font-size:13px!important;margin-bottom:22px!important;}
.kyc-spin{display:none;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:kycSpin .7s linear infinite;}
.auth-btn.loading .kyc-spin{display:inline-block;}
.auth-btn.loading .kyc-btn-arrow{display:none;}
.auth-btn.loading{opacity:.85;cursor:progress;}
@keyframes kycSpin{to{transform:rotate(360deg);}}
@media(prefers-reduced-motion:reduce){.kyc-spin{animation-duration:2s;}}

/* En-tête mobile : ne pas passer sous les boutons langue / thème */
@media(max-width:999px){.auth-mobilehead{padding-right:104px;flex-wrap:wrap;}.auth-mobilehead .auth-brand-name{font-size:15px;line-height:1.15;}}

/* ── Mobile / tablette : l'image reste visible (bandeau en haut de page) ── */
@media(max-width:999px){
  .auth-split{flex-direction:column;}
  .auth-visual{display:block;width:100%;max-width:none;height:224px;flex-shrink:0;}
  .auth-visual::after{background:linear-gradient(180deg,rgba(var(--ink-rgb),.55) 0%,rgba(var(--ink-rgb),.28) 40%,rgba(var(--ink-rgb),.88) 100%);}
  .auth-visual-content{padding:18px 20px 20px;}
  .auth-brand{padding-right:112px;}
  .auth-brand-mark{width:36px;height:36px;}
  .auth-brand-name{font-size:16px;}
  .auth-brand-logo{height:30px;}
  .auth-welcome{max-width:none;}
  .auth-welcome h2{font-size:24px;line-height:1.15;margin:0;}
  .auth-welcome p,.auth-visual-features{display:none;}
  .auth-mobilehead{display:none;}
  .auth-main{align-items:flex-start;padding:26px 20px 40px;}
}
@media(min-width:600px) and (max-width:999px){.auth-visual{height:280px;}.auth-welcome h2{font-size:30px;}}
.auth-brand-logo[data-v=dark]{filter:none;}
