/* KARETA Auth Landing v1.0.0 */
:root{
  --bg1:#070b14;
  --bg2:#0b1220;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.12);
  --text:#e9eefc;
  --muted:rgba(233,238,252,.72);
  --orange:#ff7a18;
  --orange2:#ffb01f;
  --green:#2ee59d;
  --danger:#ff4d4d;
  --shadow: 0 22px 70px rgba(0,0,0,.45);
  --radius: 22px;
  --radius2: 16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(255,122,24,.22), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(46,229,157,.18), transparent 55%),
    radial-gradient(900px 600px at 70% 90%, rgba(255,176,31,.14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.page{min-height:100%; padding:18px 16px 28px; display:flex; flex-direction:column; gap:18px}

.topbar{
  display:flex;
  align-items:center;
  justify-content: center;
  gap:12px;
  /* max-width:1100px; */
  width:100%;
  margin: 40px auto;
}

.brand{display:flex; align-items:center; gap:12px}
.logo{
  width: 50px;
  height: 50px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  display:grid;
  place-items:center;
  font-weight:800;
  box-shadow: 0 10px 30px rgba(255,122,24,.22);
}
.brand-title{font-weight:800;letter-spacing: 18.6px;text-align: center;font-size: 26px;padding-bottom: 5px;}
.brand-sub{font-size:12px; color:var(--muted); margin-top:2px}
.brand-text{line-height:1.05}

.topbar-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.chip{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
  transition:.18s transform, .18s background, .18s border-color;
}
.chip:hover{transform:translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.2)}
.chip-primary{
  border-color: rgba(255,122,24,.35);
  background: rgba(255,122,24,.10);
}

.auth{
  max-width:1100px; width:100%; margin:0 auto;
  display:grid; gap:18px;
  grid-template-columns: 1.15fr 1fr;
  align-items:stretch;
}

.auth-left{display:flex}
.hero{
  flex:1;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
  position:relative;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 260px at 20% 20%, rgba(255,122,24,.25), transparent 60%);
  pointer-events:none;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:600;
  font-size:12px;
}
.hero h1{margin:14px 0 10px; font-size:34px; letter-spacing:-.5px; line-height:1.05}
.hero p{margin:0; color:var(--muted); font-size:14px; line-height:1.55; max-width:48ch}

.hero-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.mini{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  border-radius: 16px;
  padding:12px;
}
.mini-title{font-weight:700}
.mini-sub{font-size:12px; color:var(--muted); margin-top:6px}

.note{
  display:flex; gap:10px; align-items:flex-start;
  border:1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.14);
  border-radius: 16px;
  padding:12px;
  margin-top:18px;
}
.note-dot{width:10px; height:10px; border-radius:99px; background:var(--green); margin-top:4px; box-shadow:0 0 0 6px rgba(46,229,157,.14)}
.note-text{font-size:12px; color:var(--muted); line-height:1.45}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; color:rgba(233,238,252,.92)}

.auth-right{display:flex; flex-direction:column; gap:12px}
.card{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.tabs{
  display:flex;
  padding:10px;
  gap:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.tab{
  flex:1;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding:12px 10px;
  border-radius: 16px;
  font-weight:700;
  cursor:pointer;
  transition:.18s transform, .18s background, .18s border-color, .18s color;
}
.tab:hover{transform:translateY(-1px); border-color:rgba(255,255,255,.18)}
.tab.active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,122,24,.18), rgba(255,176,31,.10));
  border-color: rgba(255,122,24,.32);
}

.card-body{padding:16px}
.form{display:none}
.form.active{display:block}

.field{margin-bottom:12px}
.field.two{
  display:grid; gap:12px;
  grid-template-columns: 1fr 1fr;
}
label{display:block; font-weight:700; font-size:12px; color:rgba(233,238,252,.92); margin:0 0 7px}
.control{position:relative}
input, select{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding:12px 12px;
  border-radius: 16px;
  outline:none;
  transition: .18s border-color, .18s background, .18s transform;
}
select{appearance:none}
input:focus, select:focus{
  border-color: rgba(255,122,24,.45);
  background: rgba(0,0,0,.26);
}
input::placeholder{color: rgba(233,238,252,.42)}
.iconbtn{
  position:absolute;
  right:10px; top:50%;
  transform: translateY(-50%);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--text);
  width:38px; height:38px;
  border-radius: 14px;
  cursor:pointer;
  transition:.18s transform, .18s background;
}
.iconbtn:hover{transform: translateY(-50%) scale(1.02); background: rgba(255,255,255,.08)}
.hint{
  margin-top:7px;
  font-size:12px;
  color: rgba(233,238,252,.55);
  min-height:16px;
}
.is-error input, .is-error select{border-color: rgba(255,77,77,.55)}
.is-error .hint{color: rgba(255,77,77,.85)}
.is-ok input, .is-ok select{border-color: rgba(46,229,157,.45)}

.row{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; margin:6px 0 12px;
}
.check{display:flex; gap:10px; align-items:center; user-select:none; cursor:pointer; color:var(--muted); font-size:13px}
.check input{width:18px; height:18px; accent-color: var(--orange)}
.link{
  background:transparent;
  border:none;
  color: rgba(233,238,252,.82);
  cursor:pointer;
  font-weight:700;
  padding:8px 10px;
  border-radius: 12px;
}
.link:hover{background: rgba(255,255,255,.05)}

.btn{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding:12px 14px;
  border-radius: 18px;
  font-weight:800;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:10px;
  transition:.18s transform, .18s background, .18s border-color;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.btn-primary{
  border-color: rgba(255,122,24,.35);
  background: linear-gradient(135deg, rgba(255,122,24,.18), rgba(255,176,31,.10));
}
.btn-ghost{
  background: rgba(0,0,0,.18);
}
.btn-arrow{opacity:.9}
.divider{
  display:flex; align-items:center; gap:10px;
  margin:12px 0;
  color: rgba(233,238,252,.55);
  font-size:12px;
}
.divider:before, .divider:after{
  content:"";
  height:1px; flex:1;
  background: rgba(255,255,255,.10);
}
.fineprint{
  margin:12px 0 0;
  color: rgba(233,238,252,.55);
  font-size:12px;
  line-height:1.45;
}

.footer{
  display:flex; justify-content:center; align-items:center; gap:10px;
  color: rgba(233,238,252,.62);
  font-size:12px;
}
.sep{opacity:.5}
.muted{opacity:.7}

/* Toast */
.toast-wrap{
  position: fixed;
  left: 0; right: 0;
  bottom: 14px;
  display:flex;
  justify-content:center;
  padding: 0 14px;
  pointer-events:none;
  z-index: 50;
}
.toast{
  pointer-events:auto;
  max-width: 520px;
  width: 100%;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 12px 12px;
  display:flex;
  align-items:flex-start;
  gap: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  animation: pop .22s ease-out;
}
@keyframes pop{
  from{transform: translateY(10px); opacity:0}
  to{transform: translateY(0); opacity:1}
}
.toast .dot{
  width:10px; height:10px; border-radius:99px;
  margin-top:4px;
}
.toast .txt{flex:1; font-size:13px; color: rgba(233,238,252,.88); line-height:1.35}
.toast .x{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  width:34px; height:34px;
  border-radius: 14px;
  cursor:pointer;
}

/* Preloader */
.preloader{
  position: fixed; inset:0;
  display:grid; place-items:center;
  background:
    radial-gradient(1000px 700px at 20% 20%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(46,229,157,.14), transparent 60%),
    linear-gradient(180deg, rgba(7,11,20,.98), rgba(11,18,32,.98));
  z-index: 999;
  opacity:1;
  transition: .28s opacity ease;
}
.preloader.hide{opacity:0; pointer-events:none}
.preloader-card{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  border-radius: 22px;
  padding:18px 18px 16px;
  box-shadow: var(--shadow);
  width:min(360px, 92vw);
  text-align:center;
}
.spinner{
  width:46px; height:46px;
  margin: 0 auto 10px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.14);
  border-top-color: rgba(255,122,24,.9);
  animation: spin 1s linear infinite;
}
@keyframes spin{to{transform: rotate(360deg)}}
.preloader-title{font-weight:900; letter-spacing:.9px}
.preloader-sub{margin-top:6px; color: rgba(233,238,252,.68); font-size:12px}

/* Responsive */
@media (max-width: 980px){
  .auth{grid-template-columns:1fr}
  .hero h1{font-size:30px}
}
@media (max-width: 520px){
  .topbar{flex-direction:column; align-items:stretch}
  .topbar-actions{justify-content:space-between}
  .hero-grid{grid-template-columns:1fr}
  .field.two{grid-template-columns:1fr}
}


/* v1.0.2: hint error state */
.hint.is-error{ color: var(--danger, #d43c3c); }
