/* DIR Authentication Experience - v145
   Patterns adapted from Tabler sign-in cover + existing DIR auth components. */
.auth-global{min-height:100vh}.auth-shell{position:relative}.auth-card{max-width:430px;width:100%;padding:4px}.auth-mobile-logo{margin-bottom:22px}.auth-heading{display:grid;gap:5px;margin-bottom:22px}.auth-heading h1{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.02em}.auth-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.auth-heading-center{text-align:center}.auth-eyebrow{display:inline-flex;align-items:center;gap:6px;width:max-content;color:var(--indigo);font-size:10px;font-weight:900;letter-spacing:.09em}.auth-heading-center .auth-eyebrow{margin-inline:auto}
.auth-state{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;padding:11px 12px;margin-bottom:15px;border:1px solid var(--line-2);border-radius:12px;background:var(--bg-2)}.auth-state>span{width:34px;height:34px;border-radius:9px;display:grid;place-items:center}.auth-state>div{display:grid;gap:2px}.auth-state b{font-size:12px}.auth-state p{margin:0;font-size:11px;line-height:1.5}.auth-state-invalid,.auth-state-blocked{border-color:color-mix(in srgb,var(--app-danger,var(--red,#dc3545)) 24%,var(--line-2));background:color-mix(in srgb,var(--app-danger,var(--red,#dc3545)) 5%,var(--card))}.auth-state-invalid>span,.auth-state-blocked>span{background:color-mix(in srgb,var(--app-danger,var(--red,#dc3545)) 10%,transparent);color:var(--app-danger,var(--red,#dc3545))}.auth-state-pending,.auth-state-timeout{border-color:color-mix(in srgb,var(--gold,#c9a84c) 28%,var(--line-2));background:color-mix(in srgb,var(--gold,#c9a84c) 6%,var(--card))}.auth-state-pending>span,.auth-state-timeout>span{background:color-mix(in srgb,var(--gold,#c9a84c) 12%,transparent);color:var(--gold,#9c7a18)}
.auth-form{display:grid;gap:15px}.auth-field{display:grid;gap:6px}.auth-field>label,.auth-label-row label{font-size:12px;font-weight:800;color:var(--ink)}.auth-label-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.auth-label-row a{font-size:11px;font-weight:700;color:var(--indigo);text-decoration:none}.auth-label-row a:hover{text-decoration:underline}.auth-input-wrap{min-height:48px;border:1px solid var(--line-2);border-radius:11px;background:var(--card);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.auth-input-wrap:focus-within{border-color:var(--indigo);box-shadow:var(--btn-focus-ring)}.auth-input-wrap input{min-height:46px;font-size:13px}.auth-field.is-invalid .auth-input-wrap{border-color:var(--app-danger,var(--red,#dc3545));box-shadow:0 0 0 3px color-mix(in srgb,var(--app-danger,var(--red,#dc3545)) 10%,transparent)}.auth-field-error{min-height:14px;color:var(--app-danger,var(--red,#dc3545));font-size:10px;line-height:1.4}.auth-field-meta{display:flex;justify-content:space-between;gap:8px;min-height:15px}.auth-caps{display:inline-flex;align-items:center;gap:4px;color:var(--gold,#9c7a18);font-size:10px;font-weight:800}.auth-eye{border-radius:8px}.auth-remember{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px;padding:9px 10px;border:1px solid var(--line-2);border-radius:10px;background:var(--bg-2);cursor:pointer}.auth-remember input{margin-top:3px}.auth-remember>span{display:grid;gap:1px}.auth-remember b{font-size:11px}.auth-remember small{font-size:9.5px;color:var(--muted);line-height:1.4}.auth-submit{position:relative;min-height:48px;display:flex!important;align-items:center;justify-content:center;gap:7px}.auth-submit[disabled]{cursor:wait;opacity:.8}.auth-submit-loading{display:inline-flex;align-items:center;gap:7px}.auth-submit-loading i{width:15px;height:15px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:authSpin .7s linear infinite}.auth-secondary{display:grid;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line-2)}.auth-secondary>span{text-align:center;color:var(--muted);font-size:10px}.auth-security-note{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:14px;color:var(--muted);font-size:9.5px;line-height:1.45;text-align:center}.auth-data,.auth-hp{display:none!important}
.auth-progress{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin-bottom:22px}.auth-progress>span{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;color:var(--muted)}.auth-progress>span.done{color:var(--green,#008060)}.auth-progress>span.active{color:var(--indigo)}.auth-progress>i{height:1px;background:var(--line-2)}.auth-2fa-badge{width:54px;height:54px;margin:0 auto 12px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--indigo) 8%,var(--bg-2));color:var(--indigo)}.auth-2fa-form{margin-top:2px}.auth-otp{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.auth-otp-digit{width:100%;min-width:0;height:56px;border:1px solid var(--line-2);border-radius:11px;background:var(--card);color:var(--ink);font:800 20px/1 inherit;text-align:center;outline:none;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.auth-otp-digit:focus{border-color:var(--indigo);box-shadow:var(--btn-focus-ring);transform:translateY(-1px)}.auth-otp-digit.filled{background:color-mix(in srgb,var(--indigo) 5%,var(--card))}.auth-otp-error{text-align:center}.auth-2fa-help{display:flex;align-items:flex-start;gap:6px;margin-top:14px;padding:9px 10px;border-radius:9px;background:var(--bg-2);color:var(--muted);font-size:10px;line-height:1.5}.auth-back{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:14px;color:var(--indigo);text-decoration:none;font-size:11px;font-weight:800}.auth-back:hover{text-decoration:underline}
@keyframes authSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){.auth-card{max-width:440px}.auth-heading h1{font-size:27px}}
@media(max-width:520px){.auth-shell{padding:28px 18px!important}.auth-card{padding:0}.auth-heading h1{font-size:25px}.auth-otp{gap:5px}.auth-otp-digit{height:50px;font-size:18px}.auth-progress{gap:5px}.auth-progress>span{font-size:9px}.auth-security-note{font-size:9px}}


/* =====================================================================
   DIR Auth - Shopify-inspired focused account experience
   Visual reference only; DIR identity, components and auth logic preserved.
   ===================================================================== */
.auth-shopify{
  min-height:100vh!important;
  display:block!important;
  background:var(--app-bg,var(--bg,#f6f6f7))!important;
  padding:0!important;
}
.auth-shopify .auth-shell,
.auth-shopify .am-form-col{
  width:100%!important;
  min-height:100vh!important;
  display:grid!important;
  place-items:center!important;
  padding:48px 24px!important;
  background:transparent!important;
}
.auth-shopify .auth-card,
.auth-shopify .am-form-wrap{
  width:min(100%,430px)!important;
  max-width:430px!important;
  margin:0 auto!important;
  padding:32px!important;
  border:1px solid var(--app-border,var(--line-2,#dedede))!important;
  border-radius:16px!important;
  background:var(--app-card,var(--card,#fff))!important;
  box-shadow:0 1px 2px var(--app-shadow-color-soft),0 10px 32px var(--app-shadow-color-soft)!important;
}
.auth-shopify .auth-mobile-logo,
.auth-shopify .am-logo-mobile{
  display:flex!important;
  width:max-content!important;
  margin:0 auto 28px!important;
  align-items:center!important;
  justify-content:center!important;
}
.auth-shopify .auth-mobile-logo img,
.auth-shopify .am-logo-mobile img{
  width:108px!important;
  height:auto!important;
  max-height:58px!important;
  object-fit:contain!important;
}
.auth-shopify .auth-heading{
  gap:7px!important;
  margin-bottom:24px!important;
  text-align:start!important;
}
.auth-shopify .auth-heading-center{text-align:center!important}
.auth-shopify .auth-heading h1{
  margin:0!important;
  font-size:25px!important;
  line-height:1.25!important;
  font-weight:750!important;
  letter-spacing:-.02em!important;
  color:var(--app-text,var(--ink,#202223))!important;
}
.auth-shopify .auth-heading p{
  margin:0!important;
  font-size:12.5px!important;
  line-height:1.65!important;
  color:var(--app-muted-text,var(--muted,#6d7175))!important;
}
.auth-shopify .auth-eyebrow{display:none!important}
.auth-shopify .auth-form{gap:18px!important}
.auth-shopify .auth-flow-step{display:grid;gap:18px}
.auth-shopify .auth-flow-step[hidden]{display:none!important}
.auth-shopify .auth-field{gap:7px!important}
.auth-shopify .auth-field>label,
.auth-shopify .auth-label-row label{
  font-size:12px!important;
  font-weight:650!important;
  color:var(--app-text,var(--ink,#202223))!important;
}
.auth-shopify .auth-label-row a{
  font-size:11.5px!important;
  font-weight:600!important;
  color:var(--app-primary,var(--indigo,#008060))!important;
}
.auth-shopify .auth-input-wrap,
.auth-shopify .am-input-wrap{
  min-height:50px!important;
  padding:0!important;
  border:1px solid var(--app-border,var(--line-2,#c9cccf))!important;
  border-radius:9px!important;
  background:var(--app-input,var(--card,#fff))!important;
  box-shadow:none!important;
}
.auth-shopify .auth-input-wrap:focus-within{
  border-color:var(--app-primary,var(--indigo,#008060))!important;
  box-shadow:0 0 0 1px var(--app-primary,var(--indigo,#008060))!important;
}
.auth-shopify .am-input-ic{display:none!important}
.auth-shopify .auth-input-wrap input,
.auth-shopify .am-input-wrap input{
  min-height:48px!important;
  padding:11px 13px!important;
  font-size:13.5px!important;
  color:var(--app-text,var(--ink,#202223))!important;
}
.auth-shopify .auth-input-wrap:has(.auth-eye) input{padding-inline-end:48px!important}
.auth-shopify .auth-eye{
  inset-inline-end:8px!important;
  width:34px!important;
  height:34px!important;
  border:0!important;
  background:transparent!important;
  color:var(--app-muted-text,var(--muted,#6d7175))!important;
}
.auth-shopify .auth-field-error{
  min-height:0!important;
  font-size:10.5px!important;
  line-height:1.45!important;
}
.auth-shopify .auth-field-error:empty{display:none!important}
.auth-shopify .auth-field-meta{min-height:0!important}
.auth-shopify .auth-remember{
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:8px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.auth-shopify .auth-remember b{font-size:11.5px!important;font-weight:600!important}
.auth-shopify .auth-remember small{font-size:9.5px!important}
.auth-shopify .auth-submit,
.auth-shopify .btn.btn-primary.auth-submit{
  min-height:48px!important;
  border-radius:9px!important;
  font-size:13px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.auth-shopify .auth-submit-icon{display:none!important}
.auth-shopify .auth-secondary{
  gap:10px!important;
  margin-top:24px!important;
  padding-top:20px!important;
}
.auth-shopify .auth-secondary>span{font-size:11px!important}
.auth-shopify .auth-secondary .btn{
  min-height:46px!important;
  border-radius:9px!important;
  font-size:12px!important;
}
.auth-shopify .auth-security-note{
  margin-top:16px!important;
  font-size:9.5px!important;
  color:var(--app-muted-text,var(--muted,#6d7175))!important;
}
.auth-shopify .auth-state{
  margin-bottom:18px!important;
  padding:11px!important;
  border-radius:10px!important;
}
.auth-shopify .auth-state>span{width:30px!important;height:30px!important}
.auth-shopify .auth-state b{font-size:11.5px!important}
.auth-shopify .auth-state p{font-size:10.5px!important}
.auth-shopify .auth-account-chip{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 10px;
  border:1px solid var(--app-border,var(--line-2,#dedede));
  border-radius:9px;
  background:var(--app-bg,var(--bg-2,#f6f6f7));
}
.auth-shopify .auth-account-chip>span{
  display:grid;place-items:center;
  color:var(--app-muted-text,var(--muted,#6d7175));
}
.auth-shopify .auth-account-chip b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  direction:ltr;
  text-align:start;
  font-size:11.5px;
  font-weight:600;
}
.auth-shopify .auth-account-chip button{
  border:0;
  background:transparent;
  color:var(--app-primary,var(--indigo,#008060));
  font:600 11px/1.4 inherit;
  cursor:pointer;
  padding:4px;
}
.auth-shopify .auth-account-chip button:hover{text-decoration:underline}
.auth-shopify .auth-2fa-badge,
.auth-shopify .auth-result-badge{
  width:48px!important;
  height:48px!important;
  margin:0 auto 6px!important;
  border-radius:12px!important;
}
.auth-shopify .auth-otp{gap:6px!important}
.auth-shopify .auth-otp-digit{
  height:52px!important;
  border-radius:9px!important;
  font-size:19px!important;
  box-shadow:none!important;
}
.auth-shopify .auth-otp-digit:focus{
  border-color:var(--app-primary,var(--indigo,#008060))!important;
  box-shadow:0 0 0 1px var(--app-primary,var(--indigo,#008060))!important;
  transform:none!important;
}
.auth-shopify .auth-2fa-help,
.auth-shopify .auth-recovery-info{
  border:0!important;
  border-radius:9px!important;
  background:var(--app-bg,var(--bg-2,#f6f6f7))!important;
  font-size:10px!important;
}
.auth-shopify .auth-back{
  margin-top:16px!important;
  font-size:11px!important;
  font-weight:600!important;
}
.auth-shopify .auth-progress{display:none!important}

/* Recovery / reset in the same focused shell */
.auth-shopify .auth-recovery-card{max-width:430px!important}
.auth-shopify .auth-strength-track i{height:4px!important}
.auth-shopify .auth-password-rules{
  grid-template-columns:1fr!important;
  gap:5px!important;
  padding:9px!important;
  border-radius:9px!important;
  background:var(--app-bg,var(--bg-2,#f6f6f7))!important;
}
.auth-shopify .auth-password-rules span{font-size:9.5px!important}
.auth-shopify .auth-text-action{font-size:11px!important}

@media(max-width:620px){
  .auth-shopify .auth-shell,
  .auth-shopify .am-form-col{
    place-items:start center!important;
    padding:28px 16px!important;
  }
  .auth-shopify .auth-card,
  .auth-shopify .am-form-wrap{
    max-width:100%!important;
    padding:24px 20px!important;
    border-radius:14px!important;
    box-shadow:none!important;
  }
  .auth-shopify .auth-mobile-logo,
  .auth-shopify .am-logo-mobile{margin-bottom:22px!important}
  .auth-shopify .auth-heading h1{font-size:23px!important}
}
@media(max-width:420px){
  .auth-shopify{background:var(--app-card,var(--card,#fff))!important}
  .auth-shopify .auth-shell,
  .auth-shopify .am-form-col{padding:22px 16px!important}
  .auth-shopify .auth-card,
  .auth-shopify .am-form-wrap{
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  .auth-shopify .auth-otp-digit{height:48px!important;font-size:18px!important}
}
\n/* Google Identity Services - official button wrapper */
.auth-google-block{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0}
.auth-google-button{width:100%;min-height:44px;display:flex;justify-content:center;align-items:center;overflow:hidden}
.auth-google-button>div,.auth-google-button iframe{max-width:100%!important}
.auth-google-status{min-height:18px;margin:0;text-align:center;font-size:12px;color:var(--muted,#667085)}
.auth-google-status.is-error{color:var(--app-danger,#b42318)}
