:root{
  --bg0:#07070a;
  --bg1:#0b0b10;
  --card: rgba(255,255,255,.05);
  --card2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.55);
  --muted2: rgba(255,255,255,.40);
}

.brand-text{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 45px;
  font-weight: 700;
  left: 10vw;
  letter-spacing: 1.2px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
}

.topbar{
  padding:32px 22px;
  display:flex;
  justify-content:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:inherit;
}

.brand .mark{
  width:56px;
  height:56px;
  object-fit:contain;
}

.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.topbar{
  padding:18px 22px;
  display:flex;
  justify-content:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
  opacity:.9;
}

.brand .mark{
  width:64px;
  height:64px;
  object-fit:contain;
}

.brand .word{
  height:18px;
  width:auto;
  object-fit:contain;
  opacity:.9;
}

.main{
  flex:1;
  display:grid;
  place-items:center;
  padding:28px 16px 42px;
}

.card{
  width:min(520px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius:16px;
  padding:18px 18px 16px;
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
}

.cardHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.miniBrand{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.miniBrand img{
  width:30px;
  height:30px;
  object-fit:contain;
  opacity:.95;
  margin-top:2px;
}

.h1{
  margin:0;
  font-size:18px;
  font-weight:700;
  letter-spacing:.2px;
}

.sub{
  margin:3px 0 0;
  font-size:12px;
  color: var(--muted);
}

.hr{
  height:1px;
  background: rgba(255,255,255,.08);
  margin:14px 0;
}

.form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

label{
  display:block;
  font-size:12px;
  color: var(--muted);
  margin-bottom:6px;
}

.input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}

.input:focus{
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.32);
}

.help{
  font-size:12px;
  color: var(--muted2);
  margin-top:6px;
}

.btn{
  width:100%;
  padding:11px 12px;
  border-radius:10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight:600;
  cursor:pointer;
}

.btn:hover{
  background: rgba(255,255,255,.14);
}

.btn:active{
  transform: translateY(1px);
}

.btn.secondary{
  background: rgba(255,255,255,.06);
}

.inline{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:4px;
}

.small{
  font-size:12px;
  color: var(--muted);
}

.link{
  color: rgba(255,255,255,.82);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.link:hover{
  border-bottom-color: rgba(255,255,255,.35);
}

.footer{
  padding:18px 12px 26px;
  display:flex;
  justify-content:center;
  color: rgba(255,255,255,.22);
  font-size:12px;
}

/* Toasts */
.toastWrap{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;

  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}


.toast{
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}

.toast .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  background: rgba(255,255,255,.45);
}

.toast.ok .dot{ background: #2ecc71; }
.toast.bad .dot{ background: #e74c3c; }

.toast .title{
  font-weight: 700;
  margin-bottom: 2px;
}

.toast .msg{
  font-size: 14px;
  line-height: 1.3;
  opacity: .92;
  white-space: pre-wrap;
  word-break: break-word;
}

.toast .x{
  margin-left: auto;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}

.toast .x:hover{ opacity: 1; }
