:root{
  --brand:#b01116;
  /*--bg:#0b0b10;*/
  --bg:#303030;
  --card:#12121a;
  --text:#f4f4f5;
  --muted:#a1a1aa;
  --line:rgba(255,255,255,.08);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  background: radial-gradient(1200px 600px at 20% 10%, rgba(62 56 57 / 25%), transparent 55%),
              radial-gradient(900px 500px at 80% 30%, rgba(255,255,255,.06), transparent 60%),
              var(--bg);
  color:var(--text);
}

/* Container */
.shell{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.cardx{
  width:min(980px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  overflow:hidden;
}

/* Top brand area */
.brandbar{
  display:flex;
  gap:14px;
  align-items:center;
  padding:16px 16px 8px 16px;
}
.brandbar img{height:48px; width:auto}
.brandbar .meta{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brandbar .meta .title{font-weight:800; letter-spacing:.2px}
.brandbar .meta .sub{font-size:13px; color:var(--muted)}

/* Content split */
.grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:0;
}
@media (max-width: 900px){
  .grid{grid-template-columns: 1fr}
  .brandbar img{height:42px}
}

/* Left info panel */
.leftpane{
  padding:16px;
  border-top:1px solid var(--line);
  border-right:1px solid var(--line);
}
@media (max-width: 900px){
  .leftpane{border-right:none}
}

.hero{
  padding:18px;
  border-radius:16px;
  background: rgba(0,0,0,.25);
  border:1px solid var(--line);
}
.hero h1{
  margin:0 0 8px 0;
  font-size: 22px;
}
.hero p{margin:0; color:var(--muted); line-height:1.45}

.badges{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(176,17,22,.12);
}

/* Right form panel */
.rightpane{
  padding:16px;
  border-top:1px solid var(--line);
}

.formbox{
  background: rgba(0,0,0,.22);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}

.label{font-size:13px; color:var(--muted); margin:0 0 6px 2px}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(176,17,22,.55);
  box-shadow: 0 0 0 4px rgba(176,17,22,.18);
}

.btnx{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  font-weight:800;
  background: linear-gradient(90deg, #b01116, #ff3b3b);
  color:white;
}
.btnx:active{transform: translateY(1px)}

.linkrow{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
}
a.linkx{color:#ffd3d3; text-decoration:none}
a.linkx:hover{text-decoration:underline}

.alertx{
  margin:10px 0 0 0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size:13px;
}
.alertx.ok{border-color: rgba(0,255,140,.22); background: rgba(0,255,140,.08)}
.alertx.err{border-color: rgba(255,60,60,.30); background: rgba(255,60,60,.10)}

/* Dashboard */
.topnav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.topnav .who{color:var(--muted); font-size:13px}
.logout{
  display:inline-block;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  background: rgba(0,0,0,.25);
}
.logout:hover{border-color: rgba(176,17,22,.55)}

.list{
  padding:16px;
  display:grid;
  gap:12px;
}
.entry{
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  border-radius:16px;
  padding:14px;
}
.entry .head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.entry .head .name{font-weight:900}
.entry .head .id{color:var(--muted); font-size:13px}

.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 700px){
  .kv{grid-template-columns: 1fr}
}
.kv .item{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius:12px;
  padding:10px;
}
.kv .k{font-size:12px; color:var(--muted)}
.kv .v{margin-top:2px; font-weight:700; font-size:14px}

/* Optional: “app-like” feel on mobile */
@media (max-width: 700px){
  body{overscroll-behavior: none;}
}

/* Tabs (Login / Sign-up) */
.tabs{
  display:flex;
  gap:10px;
  margin:0 0 14px 0;
  padding:6px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.tabbtn{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.85);
  cursor:pointer;
  font-weight:900;
  letter-spacing:.2px;
  transition: .2s ease;
}

.tabbtn:hover{
  background: rgba(255,255,255,.06);
}

.tabbtn.is-active{
  background: linear-gradient(90deg, rgba(176,17,22,.85), rgba(255,59,59,.75));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(176,17,22,.20);
  color:#fff;
}

/* IMPORTANT: only active pane shows */
.tabpane{ display:none !important; }
.tabpane.is-active{ display:block !important; }

/* small helper text */
.hint{
  margin:-2px 0 8px 2px;
  font-size:12px;
  color: rgba(255,255,255,.65);
}

.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #e5e7eb;
}

.btnx{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
}

.btnx-ghost{
  background:#fff;
  border-color:#e5e7eb;
  color:#111827;
}

.btnx-ghost:hover{ background:#f9fafb; }

.btnx-primary{
  background:var(--brand, #b01116);
  color:#fff;
}

.btnx-primary:hover{ filter:brightness(.95); }
