/* ============ AUTH PAGES ============ */
.auth-body{
  background:var(--paper);
  min-height:100vh;
  margin:0;
}
.auth-shell{
  display:grid;
  grid-template-columns:minmax(380px, 5fr) 7fr;
  min-height:100vh;
}

/* LEFT PANEL */
.auth-aside{
  position:relative;
  background:linear-gradient(160deg, #0E1116 0%, #1a1f2b 60%, #1E6CB8 160%);
  color:#fff;
  padding:48px 48px 40px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.auth-aside::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(245,147,33,.2), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(30,108,184,.3), transparent 55%);
  pointer-events:none;
}
.auth-brand{
  position:relative;z-index:2;
  display:inline-block;
}
.auth-brand .brand-logo{height:34px}
.auth-aside-copy{
  position:relative;z-index:2;
  margin-top:auto;
  margin-bottom:40px;
  max-width:460px;
}
.auth-aside-copy .kicker.light{color:#FFC383;margin-bottom:16px}
.auth-aside-copy h1{
  font-size:clamp(34px, 3.6vw, 52px);
  margin:0 0 18px;
}
.auth-aside-lede{
  font-size:16px;
  line-height:1.55;
  color:rgba(255,255,255,.72);
  margin:0 0 32px;
}
.auth-stats{
  display:flex;gap:32px;flex-wrap:wrap;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.12);
}
.auth-stats > div{display:flex;flex-direction:column}
.auth-stats b{
  font-family:'Manrope', sans-serif;
  font-weight:800;
  font-size:28px;
  color:var(--orange);
  letter-spacing:-.02em;
  line-height:1;
}
.auth-stats span{
  font-size:12px;
  color:rgba(255,255,255,.6);
  margin-top:4px;
}
.auth-aside-list{
  list-style:none;padding:0;margin:0 0 16px;
}
.auth-aside-list li{
  position:relative;
  padding:10px 0 10px 28px;
  font-size:15px;
  color:rgba(255,255,255,.85);
  border-top:1px solid rgba(255,255,255,.1);
}
.auth-aside-list li:first-child{border-top:none}
.auth-aside-list li::before{
  content:"";
  position:absolute;left:0;top:14px;
  width:16px;height:16px;
  background:var(--orange);
  border-radius:50%;
  background-image:
    linear-gradient(45deg, transparent 40%, #fff 40%, #fff 50%, transparent 50%),
    linear-gradient(-45deg, transparent 50%, #fff 50%, #fff 60%, transparent 60%);
}
.auth-aside-mark{
  position:absolute;
  bottom:-40px;left:-60px;
  width:120%;pointer-events:none;
  z-index:1;
}

/* RIGHT PANEL */
.auth-main{
  display:flex;
  flex-direction:column;
  padding:32px 48px 48px;
  background:var(--paper);
}
.auth-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:auto;
}
.auth-logo-mobile{display:none}
.auth-logo-mobile .brand-logo{height:28px}
.auth-back{
  font-family:'Manrope', sans-serif;
  font-size:14px;font-weight:600;
  color:var(--muted);
  transition:color .15s;
}
.auth-back:hover{color:var(--ink)}

.auth-card{
  max-width:460px;
  width:100%;
  margin:32px auto;
}

.auth-tabs{
  display:inline-flex;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px;
  margin-bottom:28px;
  box-shadow:var(--shadow-sm);
}
.auth-tab{
  padding:8px 20px;
  border-radius:999px;
  font-family:'Manrope', sans-serif;
  font-weight:600;
  font-size:14px;
  color:var(--muted);
  transition:background .15s, color .15s;
}
.auth-tab.active{
  background:var(--ink);
  color:#fff;
}

.auth-title{
  margin:0 0 8px;
  font-size:clamp(28px, 3vw, 36px);
}
.auth-sub{
  font-size:15px;
  color:var(--muted);
  margin:0 0 28px;
}

/* Role picker */
.role-picker{
  display:flex;gap:8px;flex-wrap:wrap;
  margin-bottom:20px;
}
.role-chip{
  flex:1;
  min-width:120px;
  cursor:pointer;
}
.role-chip input{position:absolute;opacity:0;pointer-events:none}
.role-chip span{
  display:flex;align-items:center;justify-content:center;
  padding:10px 14px;
  border:1.5px solid var(--line);
  border-radius:12px;
  background:#fff;
  font-family:'Manrope', sans-serif;
  font-weight:600;
  font-size:13px;
  color:var(--ink-2);
  text-align:center;
  transition:all .15s;
}
.role-chip input:checked + span{
  border-color:var(--orange);
  background:var(--orange-50);
  color:var(--orange-600);
}

/* Form */
.auth-form{display:flex;flex-direction:column;gap:14px;margin-bottom:24px}
.field{display:flex;flex-direction:column;gap:6px}
.field > span{
  font-family:'Manrope', sans-serif;
  font-size:13px;
  font-weight:600;
  color:var(--ink-2);
}
.field-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.field-link{
  font-weight:500;
  font-size:12px;
  color:var(--orange);
}
.field-link:hover{text-decoration:underline}
.field input{
  width:100%;
  padding:13px 16px;
  border:1.5px solid var(--line);
  border-radius:12px;
  background:#fff;
  font-family:'Inter', sans-serif;
  font-size:15px;
  color:var(--ink);
  transition:border-color .15s, box-shadow .15s;
}
.field input:focus{
  outline:none;
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(245,147,33,.18);
}
.field-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.check{
  display:flex;align-items:flex-start;gap:10px;
  font-size:13px;
  color:var(--ink-2);
  line-height:1.5;
  cursor:pointer;
}
.check input{
  flex:0 0 16px;
  width:16px;height:16px;margin-top:2px;
  accent-color:var(--orange);
  cursor:pointer;
}
.auth-submit{width:100%;justify-content:center;margin-top:4px}

/* Separator */
.auth-sep{
  display:flex;align-items:center;gap:14px;
  margin:22px 0;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.08em;
}
.auth-sep::before,
.auth-sep::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

/* OAuth / ICCN buttons */
.auth-extra{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.btn-oauth{
  width:100%;
  justify-content:center;
  background:#fff;
  color:var(--ink);
  border:1.5px solid var(--line);
  padding:14px 18px;
  transition:border-color .15s, background .15s, transform .15s;
}
.btn-oauth:hover{
  border-color:var(--ink-2);
  background:#faf6ec;
  transform:translateY(-1px);
}
.btn-oauth-iccn{
  gap:12px;
}
.iccn-mark{
  font-family:'Manrope', sans-serif;
  font-weight:800;
  font-size:12px;
  letter-spacing:.08em;
  background:var(--blue);
  color:#fff;
  padding:4px 8px;
  border-radius:6px;
  line-height:1;
}

.auth-foot{
  text-align:center;
  font-size:14px;
  color:var(--muted);
  margin:0;
}
.auth-link{
  color:var(--orange);
  font-weight:600;
}
.auth-link:hover{text-decoration:underline}

.auth-legal{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin:24px auto 0;
  max-width:480px;
}
.auth-legal a{color:var(--ink-2);text-decoration:underline}

/* RESPONSIVE */
@media (max-width: 960px){
  .auth-shell{grid-template-columns:1fr}
  .auth-aside{display:none}
  .auth-main{padding:24px 20px 40px}
  .auth-logo-mobile{display:inline-block}
  .auth-card{margin:20px auto}
  .field-grid{grid-template-columns:1fr}
}
