:root{
  --auth-line: rgba(255,255,255,.10);
  --auth-line-2: rgba(255,255,255,.06);
  --auth-soft: rgba(255,255,255,.72);
  --auth-shadow: 0 24px 60px rgba(0,0,0,.42);
}

body.auth-page{
  min-height:100vh;
  position:relative;
  background:
    radial-gradient(900px 420px at 12% -12%, rgba(255,106,0,.18), transparent 58%),
    radial-gradient(780px 360px at 100% 0%, rgba(255,140,66,.12), transparent 60%),
    linear-gradient(180deg, rgba(6,6,8,.98), rgba(8,8,10,.98));
}

body.auth-page::before,
body.auth-page::after{
  content:"";
  position:fixed;
  border-radius:999px;
  filter:blur(100px);
  pointer-events:none;
  z-index:0;
}

body.auth-page::before{
  width:240px;
  height:240px;
  left:-40px;
  top:180px;
  background:rgba(255,106,0,.12);
}

body.auth-page::after{
  width:280px;
  height:280px;
  right:-80px;
  bottom:40px;
  background:rgba(255,255,255,.04);
}

.auth-main{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:42px 20px 76px;
}

.auth-shell{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(360px, .9fr);
  gap:22px;
  align-items:stretch;
}

.auth-card,
.auth-panel,
.auth-mini{
  position:relative;
  border:1px solid var(--auth-line);
  border-radius:30px;
  background:linear-gradient(180deg, rgba(20,20,24,.88), rgba(12,12,14,.94));
  box-shadow:var(--auth-shadow);
  overflow:hidden;
}

.auth-card::before,
.auth-panel::before,
.auth-mini::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}

.auth-panel{
  padding:28px;
  display:grid;
  gap:20px;
  align-content:start;
}

.auth-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  padding:.42rem .82rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.76);
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.auth-panel h1,
.auth-form-panel h2{
  margin:0;
  font-size:clamp(2rem, 4vw, 3rem);
  line-height:1;
}

.auth-panel h1 span,
.auth-form-panel h2 span{
  background:linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.auth-lead,
.auth-note,
.auth-micro,
.auth-list li{
  color:var(--auth-soft);
  line-height:1.65;
}

.auth-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.auth-mini{
  padding:18px;
}

.auth-mini strong{
  display:block;
  margin-top:4px;
  font-size:1.1rem;
}

.auth-mini small{
  color:rgba(255,255,255,.62);
}

.auth-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:12px;
}

.auth-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.auth-list i{
  color:var(--primary-light);
  margin-top:4px;
}

.auth-form-panel{
  padding:24px;
  display:grid;
  gap:18px;
  align-content:start;
}

.auth-tabs{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
}

.auth-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#fff;
  cursor:pointer;
  font-weight:900;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}

.auth-tab.active{
  color:#111;
  background:linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color:rgba(255,255,255,.12);
  box-shadow:0 16px 34px rgba(255,106,0,.20);
}

.auth-tab:hover{ transform:translateY(-1px); }

.auth-form{
  display:grid;
  gap:14px;
}

.auth-form[data-mode="login"] .signup-only,
.auth-form[data-mode="staff"] .signup-only{ display:none; }

.auth-field{
  display:grid;
  gap:8px;
}

.auth-field span,
.auth-switch,
.auth-msg,
.auth-links a{
  font-size:12px;
}

.auth-field span,
.auth-switch{
  color:rgba(255,255,255,.72);
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.auth-input,
.auth-select,
.auth-textarea{
  width:100%;
  min-height:56px;
  padding:.95rem 1rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  color:#fff;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-textarea{
  min-height:140px;
  resize:vertical;
}

.auth-input::placeholder,
.auth-textarea::placeholder{ color:rgba(255,255,255,.46); }

.auth-input:focus,
.auth-select:focus,
.auth-textarea:focus{
  border-color:rgba(255,140,66,.35);
  box-shadow:0 0 0 4px rgba(255,106,0,.10);
}

.auth-actions,
.auth-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.auth-actions .btn,
.auth-links .btn{ flex:1 1 220px; }

.auth-msg{
  min-height:18px;
  color:#9fe7b2;
  line-height:1.5;
}

.auth-msg.is-error{ color:#ff9c9c; }

.auth-links{
  padding-top:4px;
  border-top:1px solid var(--auth-line-2);
}

.auth-links a{
  color:var(--primary-light);
  font-weight:800;
  text-decoration:none;
}

.auth-links a:hover{ text-decoration:underline; }

.auth-switch{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

.auth-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:.9rem 1rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#fff;
  text-decoration:none;
  font-weight:900;
}

.auth-ghost:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}

.auth-inline-note{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.74);
}

@media (max-width: 980px){
  .auth-shell{ grid-template-columns:1fr; }
}

@media (max-width: 640px){
  .auth-main{ padding:26px 14px 60px; }
  .auth-panel,
  .auth-form-panel{ padding:20px; }
  .auth-grid{ grid-template-columns:1fr; }
  .auth-actions .btn,
  .auth-links .btn{ flex:1 1 100%; }
}
