/* ================= tokens — matched to bitminechain.com ================= */
:root{
  --ink:#000000;
  --ink-elevated:#0E0E10;
  --ink-line:#242119;
  --gold:#F0A500;
  --gold-soft:#FFC94D;
  --gold-dim:#8A6300;
  --text:#F5F1E8;
  --text-muted:#948F82;
}

*{box-sizing:border-box;}

html,body{
  margin:0;
  min-height:100%;
  background:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--text);
}

/* ================= stage / phone frame ================= */
.stage{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 12px;
  background:
    radial-gradient(circle at 50% 10%, rgba(240,165,0,0.14), transparent 55%),
    var(--ink);
}

.phone{
  width:100%;
  max-width:380px;
  border-radius:34px;
  padding:10px;
  background:linear-gradient(160deg,#1a1712,#000 60%);
  border:1px solid var(--ink-line);
  box-shadow:0 50px 90px -30px rgba(0,0,0,0.85);
}

.phone-screen{
  border-radius:26px;
  overflow:hidden;
  background:var(--ink);
  min-height:640px;
  display:flex;
  flex-direction:column;
}

/* ================= top panel (logo header, matches site nav) ================= */
.top-panel{
  padding:40px 20px 26px;
  text-align:center;
  border-bottom:1px solid var(--ink-line);
}

.brand-lockup{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.logo-badge{
  width:38px;
  height:38px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(155deg,var(--gold-soft),var(--gold) 70%);
  box-shadow:0 8px 20px -6px rgba(240,165,0,0.55);
  flex-shrink:0;
}

.wordmark{
  margin:0;
  font-size:20px;
  font-weight:800;
  color:var(--text);
  letter-spacing:-0.01em;
}

.wordmark span{color:var(--gold);}

/* ================= auth card ================= */
.auth-card{
  flex:1;
  background:var(--ink);
  padding:26px 24px 30px;
}

/* ================= tab switch ================= */
.switch{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:var(--ink-elevated);
  border:1px solid var(--ink-line);
  border-radius:999px;
  padding:4px;
  margin-bottom:26px;
}

.switch a{
  position:relative;
  z-index:2;
  text-align:center;
  padding:10px 8px;
  font-size:13.5px;
  font-weight:700;
  text-decoration:none;
  color:var(--text-muted);
  border-radius:999px;
}

.switch a.active{color:var(--ink);}

.switch-thumb{
  position:absolute;
  top:4px; left:4px;
  width:calc(50% - 4px);
  height:calc(100% - 8px);
  border-radius:999px;
  background:linear-gradient(155deg,var(--gold-soft),var(--gold));
  transition:transform .08s ease;
  z-index:1;
}

.switch-thumb.right{transform:translateX(100%);}

#authCard{transition:opacity .06s ease;}

/* ================= messages ================= */
.message{
  margin:-6px 0 18px;
  padding:10px 14px;
  font-size:13px;
  border-radius:4px;
  border-left:3px solid var(--gold);
  background:rgba(240,165,0,0.08);
}

.message.error{
  border-left-color:#E5484D;
  background:rgba(229,72,77,0.12);
}

/* ================= form fields ================= */
.auth-form{display:flex;flex-direction:column;}

.auth-form label{
  font-size:12px;
  font-weight:600;
  color:var(--text-muted);
  margin:16px 0 6px;
}

.auth-form label:first-of-type{margin-top:0;}

.line-input{
  border-bottom:1px solid var(--ink-line);
  display:flex;
  align-items:center;
  transition:border-color .2s ease;
}

.line-input:focus-within{border-color:var(--gold);}

.line-input input{
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  padding:8px 2px 10px;
  font-size:15px;
  color:var(--text);
  font-family:inherit;
}

.password-line button{
  background:none;
  border:none;
  color:var(--gold-soft);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  cursor:pointer;
  padding:4px 2px;
}

/* ================= remember me ================= */
.remember-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:20px 0 8px;
  font-size:13px;
  color:var(--text-muted);
}

.toggle{position:relative;display:inline-block;width:38px;height:21px;}
.toggle input{opacity:0;width:0;height:0;}
.toggle span{
  position:absolute;inset:0;
  background:var(--ink-line);
  border-radius:999px;
  transition:background .2s ease;
}
.toggle span::before{
  content:"";
  position:absolute;
  top:2px;left:2px;
  width:17px;height:17px;
  border-radius:50%;
  background:var(--text-muted);
  transition:transform .2s ease,background .2s ease;
}
.toggle input:checked + span{background:rgba(240,165,0,0.35);}
.toggle input:checked + span::before{
  transform:translateX(17px);
  background:var(--gold-soft);
}

/* ================= divider ================= */
.divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:22px 0 18px;
  color:var(--text-muted);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.divider::before,.divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--ink-line);
}

/* ================= google button ================= */
#googleBtnContainer{
  display:flex;
  justify-content:center;
  min-height:40px; /* holds layout steady while the GSI script loads */
}
.google-error{
  margin:-6px 0 0;
  padding:10px 14px;
  font-size:13px;
  border-radius:4px;
  border-left:3px solid #E5484D;
  background:rgba(229,72,77,0.12);
  display:none;
}

/* ================= button ================= */
.main-btn{
  margin-top:26px;
  border:none;
  border-radius:999px;
  padding:15px;
  font-size:14.5px;
  font-weight:700;
  color:var(--ink);
  background:linear-gradient(155deg,var(--gold-soft),var(--gold));
  cursor:pointer;
  box-shadow:0 10px 24px -10px rgba(240,165,0,0.6);
  transition:transform .15s ease;
}

.main-btn:hover{transform:translateY(-1px);}
.main-btn:active{transform:translateY(0);}

@media (max-width:400px){
  .phone{border-radius:26px;}
  .phone-screen{border-radius:20px;min-height:600px;}
  .top-panel{padding:32px 16px 22px;}
}