
:root{
  --bg:#eef5ff;
  --ink:#172435;
  --muted:#697586;
  --line:#d8e3f2;
  --accent:#c61d2e;
  --navy:#111b35;
  --shadow:0 18px 50px rgba(15,23,42,.10);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;
  background:linear-gradient(180deg,#edf4fb 0%,#e5eef9 100%);
  color:var(--ink);
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.auth-shell{width:min(880px,100%)}
.auth-card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:30px 28px 24px;
  backdrop-filter:blur(8px);
}
.brand-row{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:46px;
  align-items:center;
  margin-bottom:50px;
  position:relative;
}
.brand-logo{
  width:280px;
  height:auto;
  display:block;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  padding-left:34px;
}
.brand-copy::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(201,210,225,0) 0%, rgba(187,196,211,1) 18%, rgba(187,196,211,1) 82%, rgba(201,210,225,0) 100%);
  box-shadow:0 0 0 1px rgba(216,227,242,.45);
}
.brand-kicker{
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  color:#60708a;
  margin-bottom:6px;
}
.brand-copy h1{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.06;
}
.brand-copy p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
  font-size:14px;
}
.auth-tabs{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 258px));
  justify-content:center;
  gap:10px;
  margin:18px 0 18px;
}
.auth-tab{
  height:42px;
  border:1px solid var(--line);
  background:#f7faff;
  border-radius:14px;
  font-weight:800;
  color:#314158;
  cursor:pointer;
  font-size:15px;
}
.auth-tab.is-active{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}
.auth-panel{display:none}
.auth-panel.is-active{display:block}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:6px;
}
label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#304052;
  margin:0 0 14px;
}
input{
  display:block;
  width:100%;
  height:42px;
  border:1px solid #cfd8e6;
  border-radius:14px;
  padding:0 14px;
  font-size:15px;
  margin-top:8px;
  outline:none;
  background:#fff;
}
input:focus{
  border-color:#8db3ff;
  box-shadow:0 0 0 4px rgba(70,122,255,.12);
}
.actions-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.btn{
  border:none;
  border-radius:14px;
  height:42px;
  min-width:132px;
  padding:0 18px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.btn-primary{background:var(--accent);color:#fff}
.btn-soft{background:#eef2f8;color:#243247}
.btn-small{
  height:38px;
  min-width:auto;
  padding:0 14px;
  font-size:14px;
}
.msg{
  min-height:20px;
  margin-top:12px;
  font-size:14px;
  font-weight:700;
}
.msg.ok{color:#15803d}
.msg.err{color:#b42318}
.created-box{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  background:#f9fbff;
  border:1px solid #d8e3f2;
}
.created-player{
  font-size:14px;
  font-weight:700;
  color:#334155;
  margin-bottom:10px;
}
.created-label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  color:#63748b;
  text-transform:uppercase;
  margin-bottom:10px;
}
.created-key-row{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}
code{
  display:block;
  flex:1;
  min-height:50px;
  line-height:50px;
  padding:0 16px;
  border-radius:16px;
  background:#0f172a;
  color:#fff;
  font-size:22px;
  font-weight:900;
  letter-spacing:.06em;
}
.created-note{
  margin:0 0 14px;
  color:#8b1e2d;
  font-size:14px;
  font-weight:700;
  line-height:1.45;
}
.guest-copy{
  margin:4px auto 16px;
  color:var(--muted);
  line-height:1.5;
  font-size:14px;
  max-width:44ch;
  text-align:center;
}
@media (max-width:760px){
  .auth-card{padding:22px 20px 20px}
  .brand-row{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    gap:18px;
  }
  .brand-copy{
    padding-left:0;
    padding-top:14px;
  }
  .brand-copy::before{
    left:50%;
    top:0;
    bottom:auto;
    width:72px;
    height:4px;
    transform:translateX(-50%);
  }
  .brand-logo{width:220px}
  .auth-tabs{
    grid-template-columns:1fr;
  }
  .form-grid{
    grid-template-columns:1fr;
  }
  .created-key-row{
    flex-direction:column;
    align-items:stretch;
  }
  code{
    font-size:18px;
    text-align:center;
  }
}
