:root{
  --bg:#090807;
  --panel:rgba(14,12,10,.84);
  --panel-2:rgba(24,20,15,.84);
  --gold:#d9a84a;
  --gold-2:#f1ca78;
  --line:rgba(228,180,91,.34);
  --text:#f7f3ec;
  --muted:#b9b1a6;
  --danger:#ff7878;
  --shadow:0 24px 80px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow:hidden;
}
.tega-login{
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(0,1.62fr) minmax(430px,.9fr);
  background:
    radial-gradient(circle at 82% 18%, rgba(217,168,74,.10), transparent 28%),
    #090807;
}
.tega-hero{
  position:relative;
  min-width:0;
  background:
    linear-gradient(90deg,rgba(7,6,5,.08) 0%,rgba(7,6,5,.05) 58%,rgba(7,6,5,.68) 100%),
    url("/_tega/static/tega-login-hero.webp") center center / cover no-repeat;
}
.tega-hero::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(4,4,4,.04),rgba(4,4,4,.14));
  pointer-events:none;
}
.tega-auth-wrap{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:38px 38px 34px 18px;
  position:relative;
}
.tega-auth-wrap::before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:1px;
  background:linear-gradient(transparent,var(--line),transparent);
}
.tega-card{
  width:min(100%,560px);
  border:1px solid var(--line);
  background:
    linear-gradient(180deg,rgba(27,23,18,.90),rgba(12,10,9,.92));
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-radius:24px;
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.03);
  padding:38px 42px 34px;
}
.tega-brand{
  text-align:center;
  margin-bottom:22px;
}
.tega-brand img{
  display:block;
  width:min(100%,285px);
  height:auto;
  max-height:92px;
  margin:0 auto;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 8px 22px rgba(217,168,74,.10));
}
.tega-tagline{
  margin:14px 0 0;
  font-size:18px;
  letter-spacing:.04em;
  color:#efe7da;
}
.tega-subtag{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}
.tega-divider{
  display:flex;align-items:center;gap:12px;
  color:var(--gold);font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  margin:22px 0 18px;
}
.tega-divider::before,.tega-divider::after{
  content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,var(--line));
}
.tega-divider::after{background:linear-gradient(90deg,var(--line),transparent)}
.tega-field{margin-bottom:14px}
.tega-label{
  display:block;
  color:#d7cec1;
  font-size:12px;
  font-weight:600;
  margin:0 0 7px 2px;
}
.tega-input-wrap{position:relative}
.tega-input{
  width:100%;
  height:52px;
  border-radius:13px;
  border:1px solid rgba(223,190,128,.28);
  background:rgba(5,5,5,.34);
  color:#fff;
  padding:0 48px 0 16px;
  outline:none;
  font-size:14px;
  transition:.2s ease;
}
.tega-input::placeholder{color:#7f786f}
.tega-input:focus{
  border-color:rgba(241,202,120,.72);
  box-shadow:0 0 0 3px rgba(217,168,74,.09),0 10px 28px rgba(0,0,0,.20);
}
.tega-eye{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  border:0;background:transparent;color:#bfb5a6;
  padding:7px;cursor:pointer;font-size:17px;
}
.tega-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:8px 0 18px;
  font-size:12px;color:#bdb4a8;
}
.tega-check{display:flex;align-items:center;gap:8px;white-space:nowrap}
.tega-check input{accent-color:var(--gold)}
.tega-link{
  color:var(--gold-2);
  text-decoration:none;
}
.tega-link:hover{text-decoration:underline}
.tega-error{
  display:none;
  margin:0 0 14px;
  border:1px solid rgba(255,120,120,.28);
  background:rgba(160,48,48,.12);
  color:#ffc0c0;
  border-radius:11px;
  padding:10px 12px;
  font-size:12px;
}
.tega-error[data-show="true"]{display:block}
.tega-submit{
  width:100%;
  height:54px;
  border:0;
  border-radius:13px;
  cursor:pointer;
  color:#171108;
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
  background:linear-gradient(90deg,#c99437,#f2ca76,#d5a044);
  box-shadow:0 12px 34px rgba(217,168,74,.18);
  transition:transform .18s ease,filter .18s ease;
}
.tega-submit:hover{filter:brightness(1.06);transform:translateY(-1px)}
.tega-submit:active{transform:translateY(0)}
.tega-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:24px;
  padding-top:19px;
  border-top:1px solid rgba(225,187,116,.17);
}
.tega-feature{text-align:center;color:#cfc5b7}
.tega-feature b{
  display:block;color:var(--gold-2);font-size:10px;letter-spacing:.08em;text-transform:uppercase
}
.tega-feature span{display:block;font-size:10px;margin-top:3px;color:#827a70}
.tega-foot{
  margin-top:18px;text-align:center;color:#726b63;font-size:10px;letter-spacing:.10em;text-transform:uppercase;
}
@media (max-width:1050px){
  body{overflow:auto}
  .tega-login{grid-template-columns:1fr;min-height:100dvh}
  .tega-hero{
    min-height:35vh;
    background-position:center 28%;
  }
  .tega-auth-wrap{padding:24px}
  .tega-auth-wrap::before{display:none}
  .tega-card{margin-top:-56px;position:relative;z-index:3}
}
@media (max-width:620px){
  .tega-hero{min-height:26vh}
  .tega-auth-wrap{padding:14px}
  .tega-card{padding:28px 20px 24px;border-radius:20px}
  .tega-brand img{width:min(100%,220px);max-height:76px}
  .tega-row{align-items:flex-start;flex-direction:column;gap:8px}
  .tega-features{gap:3px}
}