/* Auth — black & white split stage */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Instrument+Sans:wght@600;700&display=swap');

:root{
  --auth-bg: #f3f3f3;
  --auth-card: #ffffff;
  --auth-text: #0a0a0a;
  --auth-muted: #525252;
  --auth-border: #e5e5e5;
  --auth-shadow: 0 24px 60px rgba(0,0,0,0.12);

  --auth-primary: #0a0a0a;
  --auth-primary-dark: #000000;

  --auth-danger-bg: #fee2e2;
  --auth-danger-text: #b91c1c;
  --auth-success-bg: #dcfce7;
  --auth-success-text: #166534;

  --auth-radius: 18px;
  --auth-font: "DM Sans", system-ui, sans-serif;
  --auth-title-font: "Instrument Sans", "DM Sans", system-ui, sans-serif;
}

*{ box-sizing:border-box; }

.auth-body,
body{
  margin:0;
  min-height:100vh;
  background:
    linear-gradient(135deg, #fafafa 0%, #eeeeee 50%, #f5f5f5 100%);
  color: var(--auth-text);
  font-family: var(--auth-font);
  display:flex;
  flex-direction:column;
}

a{
  color: var(--auth-primary);
  text-decoration:none;
}
a:hover{ text-decoration: underline; }

.auth-page{
  width:100%;
  padding: 72px 16px 48px;
  display:flex;
  justify-content:center;
  align-items:center;
  flex: 1;
}

.auth-stage{
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--auth-border);
  box-shadow: var(--auth-shadow);
  background: #fff;
  min-height: 560px;
}

.auth-brand{
  background: #0a0a0a;
  color: #fff;
  padding: 40px 36px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.auth-brand::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 42%),
    linear-gradient(160deg, transparent 40%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.auth-brand__inner{ position: relative; z-index: 1; }

.auth-brand__kicker{
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.auth-brand__title{
  margin: 0;
  font-family: var(--auth-title-font);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.auth-brand__text{
  margin: 14px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.55;
  max-width: 28ch;
}

.auth-brand__points{
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.auth-brand__points li{
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding-left: 14px;
  position: relative;
}

.auth-brand__points li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.auth-card{
  background: var(--auth-card);
  display: flex;
  align-items: center;
}

.auth-card__inner{
  width: 100%;
  padding: 36px 32px 32px;
}

.auth-logo{
  text-align:center;
  margin: 0 0 18px;
}

.auth-logo img{
  max-width: 88px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: grayscale(1);
}

.auth-title{
  margin: 0 0 7px;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--auth-text);
  text-align:center;
  font-family: var(--auth-title-font);
  font-weight: 700;
  line-height: 1.1;
}

.auth-subtitle{
  margin: 0 0 22px;
  text-align:center;
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

.auth-alert{
  padding: 12px 13px;
  border-radius: 12px;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.35;
  border: 1px solid transparent;
}
.auth-alert--error{
  background: var(--auth-danger-bg);
  color: var(--auth-danger-text);
  border-color: rgba(185, 28, 28, 0.22);
}
.auth-alert--success{
  background: var(--auth-success-bg);
  color: var(--auth-success-text);
  border-color: rgba(22, 101, 52, 0.22);
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap: 13px;
}

.auth-field label{
  display:block;
  margin: 0 0 7px;
  font-size: 0.72rem;
  color: #525252;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.auth-input,
.auth-select{
  width:100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background:#fff;
  font-size: 0.95rem;
  outline:none;
  color: var(--auth-text);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input:focus,
.auth-select:focus{
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.auth-file{
  display:flex;
  align-items:center;
  gap: 10px;
  width:100%;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,0.22);
  background: #fff;
  cursor:pointer;
}

.auth-file:hover{
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.auth-file__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0a0a0a;
  color:#fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space:nowrap;
}

.auth-file__name{
  color: var(--auth-muted);
  font-size: 0.92rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.auth-file__input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.auth-password{ position:relative; }
.auth-password__wrap{ position:relative; }
.auth-password__wrap .auth-input{ padding-right: 50px; }

.auth-toggle{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(0,0,0,0.05);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(0,0,0,0.55);
}

.auth-toggle:hover{
  background: rgba(0,0,0,0.09);
  color: rgba(0,0,0,0.8);
}

.auth-toggle:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14);
}

.pw-toggle-btn{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.55);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.pw-toggle-btn:hover{
  background: rgba(0,0,0,0.09);
  color: rgba(0,0,0,0.8);
}

.auth-toggle svg{
  width: 18px;
  height: 18px;
  display:block;
}

.auth-actions{
  display:flex;
  flex-direction:column;
  gap: 11px;
  margin-top: 10px;
}

.auth-btn{
  width:100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor:pointer;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}

.auth-btn--primary{
  background: #0a0a0a;
  color:#fff;
  border-color: #0a0a0a;
}
.auth-btn--primary:hover{
  background: #262626;
  transform: translateY(-1px);
}

.auth-btn--ghost{
  background: #fff;
  color: #0a0a0a;
  border-color: #0a0a0a;
}
.auth-btn--ghost:hover{
  background: #f5f5f5;
}

.auth-linkrow{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 9px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.auth-linkrow .muted{ color: var(--auth-muted); }
.auth-linkrow--between{ justify-content:space-between; }

.auth-divider{
  margin: 22px 0 16px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--auth-muted);
  font-size: 0.83rem;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after{
  content:"";
  height: 1px;
  background: var(--auth-border);
  flex: 1;
}

.auth-social{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.auth-social a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
  background:#fff;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease;
}
.auth-social a:hover{
  background:#fafafa;
  border-color: #0a0a0a;
  text-decoration:none;
}
.auth-social img{ width: 18px; height: 18px; }
.auth-google-icon{ width: 20px; height: 20px; object-fit: contain; filter: grayscale(1); }

.auth-bottom-links{
  margin-top: 14px;
  text-align:center;
  color: var(--auth-muted);
  font-size: 0.9rem;
}

.auth-bottom-links a{
  color: #0a0a0a;
  font-weight: 700;
}

.resend-btn{
  appearance:none;
  border:none;
  background: transparent;
  color: var(--auth-primary);
  font-weight: 700;
  font-size: 0.92rem;
  cursor:pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.resend-btn:hover{ background: rgba(0, 0, 0, 0.06); }
.resend-btn.is-disabled,
.resend-btn:disabled{
  cursor: not-allowed;
  opacity: 0.55;
  color: var(--auth-muted);
}
.resend-btn.is-disabled:hover,
.resend-btn:disabled:hover{ background: transparent; }

.auth-otp-note{
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--auth-muted);
  font-weight: 600;
  min-height: 1.2em;
}

/* Name character counter (left of input) */
.auth-input-with-count{
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-input-with-count:focus-within{
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
.auth-input-with-count .auth-input{
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.auth-char-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--auth-muted);
  background: #f5f5f5;
  border-right: 1px solid var(--auth-border);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.auth-char-count.is-full{ color: #b91c1c; background: #fef2f2; }

/* Password strength */
.auth-pw-strength{
  margin: -2px 0 4px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #fafafa;
}
.auth-pw-rules{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.auth-pw-rules li{
  position: relative;
  padding-left: 22px;
  font-size: 0.8rem;
  color: var(--auth-muted);
  font-weight: 600;
  line-height: 1.35;
}
.auth-pw-rules li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #d4d4d4;
  background: #fff;
}
.auth-pw-rules li.is-met{ color: #166534; }
.auth-pw-rules li.is-met::before{
  border-color: #16a34a;
  background: #16a34a;
  box-shadow: inset 0 0 0 2px #fff;
}
.auth-pw-meter{
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: #e5e5e5;
  overflow: hidden;
}
.auth-pw-meter__bar{
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #ef4444;
  transition: width .2s ease, background .2s ease;
}
.auth-pw-meter__bar[data-tone="standard"]{ background: #f59e0b; }
.auth-pw-meter__bar[data-tone="hard"]{ background: #16a34a; }
.auth-pw-label{
  margin: 8px 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--auth-text);
}
.auth-pw-label strong{ font-weight: 800; }
.auth-pw-strength[data-tone="weak"] .auth-pw-label strong{ color: #b91c1c; }
.auth-pw-strength[data-tone="standard"] .auth-pw-label strong{ color: #b45309; }
.auth-pw-strength[data-tone="hard"] .auth-pw-label strong{ color: #166534; }
.auth-pw-pct{
  margin-left: 6px;
  color: var(--auth-muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.auth-admin-stage .auth-brand__title{ font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.auth-already{
  width: min(420px, 100%);
  text-align: center;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: var(--auth-shadow);
}
.auth-already h1{
  margin: 0;
  font-family: var(--auth-title-font);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.auth-already p{
  margin: 8px 0 0;
  color: var(--auth-muted);
}
.auth-already__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.containerB{ width:100%; max-width: 460px; margin: 0 auto; }
.main-btn{ all: unset; }
.forgot-btn{ all: unset; }
.or-divider{ all: unset; }
.social-login{ all: unset; }

@media (max-width: 820px){
  .auth-stage{
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-brand{
    padding: 28px 24px;
    min-height: 180px;
  }
  .auth-brand__title{ font-size: 1.7rem; }
  .auth-brand__points{ display: none; }
}

@media (max-width: 420px){
  .auth-card__inner{ padding: 24px 18px; }
  .auth-linkrow{ flex-direction:column; align-items:center; text-align:center; }
  .auth-title{ font-size: 1.55rem; }
  .auth-already__actions{ grid-template-columns: 1fr; }
}
