/* ============================================================
   Harmony Clinic — Autenticazione. Palette premium dark approvata.
   ============================================================ */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:40px 20px;position:relative;overflow:hidden;background:var(--bg-900,#110D13);}
.auth-wrap::before{content:"";position:absolute;width:680px;height:680px;border-radius:50%;
  top:-260px;right:-200px;pointer-events:none;
  background:radial-gradient(circle, rgba(243,155,187,.16), transparent 62%);}
.auth-wrap::after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;
  bottom:-240px;left:-180px;pointer-events:none;
  background:radial-gradient(circle, rgba(66,39,53,.55), transparent 60%);}
.auth-card{position:relative;z-index:1;width:100%;max-width:440px;
  background:var(--bg-800,#171119);border:1px solid var(--line-dark,#301D2A);
  border-radius:20px;padding:40px 38px 34px;box-shadow:0 40px 90px -40px rgba(0,0,0,.7);}
.auth-logo{font-family:var(--display,'Cormorant Garamond',serif);
  font-size:1.7rem;color:var(--rose-500,#F39BBB);margin-bottom:6px;display:block}
.auth-card h1{font-family:var(--display,'Cormorant Garamond',serif);
  font-size:1.9rem;font-weight:600;color:var(--white-100,#FFF9FB);line-height:1.15;margin:2px 0 8px}
.auth-card .sub{font-size:.92rem;color:var(--text-muted,#B9A6B2);line-height:1.55;margin:0 0 26px}
.field{margin-bottom:16px}
.field label{display:block;font-size:.8rem;font-weight:600;color:var(--text-muted,#B9A6B2);margin-bottom:7px}
.field input{width:100%;box-sizing:border-box;height:50px;padding:0 15px;
  background:var(--plum-700,#211620);border:1px solid var(--line-dark,#301D2A);border-radius:11px;
  color:var(--white-100,#FFF9FB);font-size:1rem;font-family:inherit;transition:border-color .2s,box-shadow .2s;}
.field input::placeholder{color:#6f5f6a}
.field input:focus{outline:none;border-color:var(--rose-500,#F39BBB);box-shadow:0 0 0 3px rgba(243,155,187,.18)}
.field input[aria-invalid="true"]{border-color:#E5799B}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pw-field{position:relative}
.pw-field input{padding-right:46px}
.pw-toggle{position:absolute;right:6px;top:39px;width:38px;height:38px;border:0;background:transparent;
  cursor:pointer;display:flex;align-items:center;justify-content:center;color:#8C7A86}
.pw-toggle svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5}
.pw-toggle:hover{color:var(--rose-500,#F39BBB)}
.pw-checklist{list-style:none;margin:12px 0 4px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:7px 14px}
.pw-rule{display:flex;align-items:center;gap:8px;font-size:.78rem;color:#8C7A86;transition:color .2s}
.pw-rule .pw-ic{flex:0 0 16px;width:16px;height:16px;display:flex}
.pw-rule svg{width:16px;height:16px}
.pw-rule .pw-x{stroke:#6f5f6a;stroke-width:1.6;stroke-linecap:round;fill:none;transition:opacity .2s}
.pw-rule .pw-v{stroke:var(--rose-500,#F39BBB);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  fill:none;stroke-dasharray:14;stroke-dashoffset:14;transition:stroke-dashoffset .3s}
.pw-rule.ok{color:var(--rose-300,#F9DDE7)}
.pw-rule.ok .pw-x{opacity:0}
.pw-rule.ok .pw-v{stroke-dashoffset:0}
@media(max-width:420px){.pw-checklist{grid-template-columns:1fr}.row-2{grid-template-columns:1fr}}
.consent{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
.consent input{margin-top:3px;width:17px;height:17px;flex:0 0 17px;accent-color:var(--rose-500,#F39BBB)}
.consent label{font-size:.8rem;color:var(--text-muted,#B9A6B2);line-height:1.5}
.consent a{color:var(--rose-500,#F39BBB);text-decoration:underline}
.btn-auth{width:100%;height:52px;border:0;border-radius:12px;cursor:pointer;
  background:var(--rose-500,#F39BBB);color:var(--text-dark,#211B20);font-family:inherit;font-size:1rem;font-weight:700;
  transition:transform .15s,box-shadow .25s,background .2s;box-shadow:0 14px 30px -12px rgba(243,155,187,.5)}
.btn-auth:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 20px 40px -14px rgba(243,155,187,.6)}
.btn-auth:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.btn-auth.loading{color:transparent;position:relative}
.btn-auth.loading::after{content:"";position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;
  border-radius:50%;border:2px solid rgba(33,27,32,.35);border-top-color:#211B20;animation:hc-spin .7s linear infinite}
@keyframes hc-spin{to{transform:rotate(360deg)}}
.auth-alt{text-align:center;font-size:.85rem;color:var(--text-muted,#B9A6B2);margin-top:22px}
.auth-alt a{color:var(--rose-500,#F39BBB);font-weight:600;text-decoration:none}
.auth-alt a:hover{text-decoration:underline}
.auth-link-sm{display:inline-block;margin-top:10px;font-size:.82rem;color:#8C7A86;text-decoration:none}
.auth-link-sm:hover{color:var(--rose-500,#F39BBB)}
.auth-msg{border-radius:11px;padding:12px 15px;font-size:.86rem;line-height:1.5;margin-bottom:20px;display:none}
.auth-msg.show{display:block}
.auth-msg.error{background:rgba(229,121,155,.12);border:1px solid rgba(229,121,155,.4);color:#F5B8CC}
.auth-msg.ok{background:rgba(243,155,187,.1);border:1px solid rgba(243,155,187,.35);color:var(--rose-300,#F9DDE7)}
.otp-row{display:flex;gap:10px;justify-content:space-between;margin:8px 0 6px}
.otp-box{width:100%;aspect-ratio:1/1;max-width:56px;text-align:center;font-size:1.5rem;font-weight:700;
  color:var(--white-100,#FFF9FB);background:var(--plum-700,#211620);border:1px solid var(--line-dark,#301D2A);
  border-radius:11px;transition:border-color .2s,box-shadow .2s}
.otp-box:focus{outline:none;border-color:var(--rose-500,#F39BBB);box-shadow:0 0 0 3px rgba(243,155,187,.18)}
.otp-resend{background:none;border:0;color:var(--rose-500,#F39BBB);font-family:inherit;font-size:.84rem;
  font-weight:600;cursor:pointer;padding:4px}
.otp-resend:disabled{color:#6f5f6a;cursor:default}
@media(max-width:480px){.auth-card{padding:32px 24px 28px}}
