/* ── AUTH PAGES ─────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;font-family:'Inter',system-ui,sans-serif}

.auth-body{
  background:#050505;
  color:#fff;
  min-height:100vh;
  overflow-x:hidden;
}

.auth-center-wrap{
  width:100%;
}

/* ══ CENTERED LAYOUT ═══════════════════════════════ */
.auth-center-wrap{
  width:100%;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
  position:relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(140,255,46,0.03) 0%, transparent 70%),
    #050505;
}

.auth-card-center{
  width:100%;max-width:480px;
  background:rgba(13,13,16,0.95);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:20px;
  padding:44px 44px;
  box-shadow:0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(140,255,46,0.04);
}

.auth-card-logo{margin-bottom:32px}
.auth-logo{height:30px;width:auto}

/* Legacy compat — kept for modal */
.auth-logo-wrap{margin-bottom:32px}

.auth-heading{
  font-size:28px;font-weight:800;
  color:#fff;letter-spacing:-0.8px;
  line-height:1.1;margin-bottom:6px;
}
.auth-sub{font-size:14px;color:rgba(255,255,255,0.4);margin-bottom:28px}

/* Form fields */
.field{margin-bottom:20px}
.field label{
  display:block;font-size:12px;font-weight:600;
  letter-spacing:0.08em;text-transform:uppercase;
  color:rgba(255,255,255,0.4);margin-bottom:8px;
}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.input-wrap{
  position:relative;
  display:flex;align-items:center;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  transition:border-color 0.2s,box-shadow 0.2s,background 0.2s;
}
.input-wrap:focus-within{
  border-color:rgba(140,255,46,0.4);
  background:rgba(140,255,46,0.03);
  box-shadow:0 0 0 3px rgba(140,255,46,0.08);
}
.input-wrap svg.ico{
  position:absolute;left:14px;
  width:16px;height:16px;
  color:rgba(255,255,255,0.25);
  pointer-events:none;flex-shrink:0;
}
.input-wrap input,
.input-wrap select{
  width:100%;height:50px;
  background:transparent;border:none;outline:none;
  font-size:15px;font-weight:500;
  color:#fff;font-family:inherit;
  padding:0 44px 0 42px;
}
.input-wrap input::placeholder{color:rgba(255,255,255,0.2)}
.input-wrap select{
  padding:0 36px 0 42px;
  color:rgba(255,255,255,0.7);
  cursor:pointer;
  appearance:none;-webkit-appearance:none;
}
.input-wrap select option{background:#111;color:#fff}
.select-caret{
  position:absolute;right:14px;
  width:14px;height:14px;
  color:rgba(255,255,255,0.3);pointer-events:none;
}
.eye-btn{
  position:absolute;right:14px;
  background:none;border:none;cursor:pointer;
  padding:4px;color:rgba(255,255,255,0.3);
  transition:color 0.2s;
}
.eye-btn:hover{color:rgba(255,255,255,0.7)}
.eye-btn svg{width:16px;height:16px;display:block}

/* inline label row (password + forgot) */
.label-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.label-row label{margin-bottom:0}
.forgot{font-size:12px;color:rgba(140,255,46,0.8);font-weight:500;text-decoration:none;transition:color 0.2s}
.forgot:hover{color:#8CFF2E}

/* or-toggle (email vs username) */
.toggle-row{
  display:flex;gap:6px;margin-bottom:20px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:8px;padding:4px;
}
.toggle-btn{
  flex:1;padding:8px;border-radius:6px;
  background:none;border:none;cursor:pointer;
  font-size:13px;font-weight:600;color:rgba(255,255,255,0.4);
  transition:all 0.2s;font-family:inherit;
}
.toggle-btn.active{
  background:rgba(140,255,46,0.12);
  color:#8CFF2E;
  border:1px solid rgba(140,255,46,0.2);
}

/* password strength */
.strength-wrap{margin-top:8px}
.strength-bar{height:3px;background:rgba(255,255,255,0.06);border-radius:99px;overflow:hidden;margin-bottom:4px}
.strength-fill{height:100%;border-radius:99px;transition:width 0.3s,background 0.3s;width:0%}
.strength-text{font-size:11px;font-weight:600;color:rgba(255,255,255,0.35)}

/* checkbox */
.check-wrap{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px}
.check-wrap input[type=checkbox]{
  width:16px;height:16px;margin-top:2px;flex-shrink:0;
  accent-color:#8CFF2E;cursor:pointer;
}
.check-wrap label{font-size:13px;color:rgba(255,255,255,0.45);cursor:pointer;line-height:1.5}
.check-wrap label a{color:#8CFF2E;text-decoration:none}
.check-wrap label a:hover{text-decoration:underline}

/* Submit button */
.auth-btn{
  width:100%;height:52px;
  background:#8CFF2E;
  color:#050505;
  font-size:15px;font-weight:800;
  border:none;border-radius:10px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;
  letter-spacing:0.02em;
  transition:all 0.25s;
  position:relative;overflow:hidden;
  font-family:inherit;
  text-decoration:none;
}
.auth-btn::before{
  content:'';position:absolute;inset:0;
  background:rgba(255,255,255,0.15);
  opacity:0;transition:opacity 0.2s;
}
.auth-btn:hover{transform:translateY(-2px);box-shadow:0 10px 36px rgba(140,255,46,0.35)}
.auth-btn:hover::before{opacity:1}
.auth-btn:active{transform:scale(0.98)}
.auth-btn svg{width:16px;height:16px}

/* Divider */
.or-divider{
  display:flex;align-items:center;gap:12px;
  margin:20px 0;font-size:12px;color:rgba(255,255,255,0.2);font-weight:500;
}
.or-divider::before,.or-divider::after{
  content:'';flex:1;height:1px;background:rgba(255,255,255,0.07);
}

/* Social buttons */
.social-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:28px}
.social-btn{
  height:44px;border-radius:9px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:13px;font-weight:600;color:rgba(255,255,255,0.7);
  cursor:pointer;transition:all 0.2s;font-family:inherit;
}
.social-btn:hover{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);color:#fff}
.social-btn svg{width:18px;height:18px}

/* Switch link */
.auth-switch-link{
  text-align:center;font-size:14px;
  color:rgba(255,255,255,0.35);margin-top:4px;
}
.auth-switch-link a{color:#8CFF2E;font-weight:600;text-decoration:none}
.auth-switch-link a:hover{text-decoration:underline}

/* Back button */
.back-btn{
  width:100%;margin-top:10px;padding:12px;
  background:none;border:none;
  font-size:14px;color:rgba(255,255,255,0.35);
  cursor:pointer;font-family:inherit;
  transition:color 0.2s;
}
.back-btn:hover{color:#fff}

/* Step dots */
.steps-row{
  display:flex;align-items:center;gap:0;
  margin-bottom:32px;
}
.sdot{
  display:flex;align-items:center;gap:8px;
  font-size:12px;font-weight:600;color:rgba(255,255,255,0.25);
  transition:color 0.3s;
}
.sdot.active{color:#8CFF2E}
.sdot.done{color:rgba(255,255,255,0.5)}
.sdot-num{
  width:26px;height:26px;border-radius:50%;
  border:1.5px solid rgba(255,255,255,0.12);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;
  transition:all 0.3s;
}
.sdot.active .sdot-num{border-color:#8CFF2E;background:rgba(140,255,46,0.1);color:#8CFF2E}
.sdot.done .sdot-num{border-color:rgba(255,255,255,0.3);background:rgba(255,255,255,0.06)}
.sline{flex:1;height:1px;background:rgba(255,255,255,0.07);margin:0 10px}

/* Success state */
.success-state{text-align:center;padding:20px 0}
.success-ico{
  width:72px;height:72px;border-radius:50%;
  background:rgba(140,255,46,0.1);border:2px solid rgba(140,255,46,0.3);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 24px;
  animation:successPop 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.success-ico svg{width:32px;height:32px;color:#8CFF2E}
@keyframes successPop{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}
.success-state h2{font-size:28px;font-weight:800;color:#fff;letter-spacing:-0.5px;margin-bottom:10px}
.success-state p{font-size:15px;color:rgba(255,255,255,0.45);margin-bottom:28px;line-height:1.7}

/* hidden */
.hidden{display:none!important}

/* ══ RIGHT — ANIMATION PANEL ═══════════════════════ */
.auth-anim-panel{
  position:relative;
  overflow:hidden;
  background:#050505;
  /* Fade left edge into the form panel */
  border-left:1px solid rgba(255,255,255,0.04);
}
/* Gradient mask so anim panel fades seamlessly */
.auth-anim-panel::before{
  content:'';
  position:absolute;inset:0;z-index:4;pointer-events:none;
  background:linear-gradient(to right, rgba(5,5,5,0.6) 0%, transparent 35%),
             linear-gradient(to bottom, rgba(5,5,5,0.5) 0%, transparent 20%, transparent 80%, rgba(5,5,5,0.5) 100%);
}

/* Grid lines — very faint */
.anim-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,0.015) 1px,transparent 1px);
  background-size:50px 50px;
  opacity:0.6;
}

/* Canvas — low opacity to blend */
#miningCanvas{
  position:absolute;inset:0;
  width:100%;height:100%;
  opacity:0.4;
}

/* Central 3D rig display */
.rig-display{
  position:absolute;
  inset:0;display:flex;
  flex-direction:column;align-items:center;justify-content:center;
  pointer-events:none;z-index:2;
}
.rig-title{
  font-size:10px;font-weight:600;letter-spacing:0.18em;
  text-transform:uppercase;color:rgba(140,255,46,0.3);
  margin-bottom:12px;
}
.rig-box{
  position:relative;
  width:260px;
  background:rgba(12,12,14,0.5);
  border:1px solid rgba(140,255,46,0.06);
  border-radius:14px;
  padding:18px;
  backdrop-filter:blur(8px);
  box-shadow:0 0 40px rgba(140,255,46,0.03),0 20px 60px rgba(0,0,0,0.4);
  opacity:0.6;
}
.rig-box::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(140,255,46,0.4),transparent);
}
.rig-stat-row{display:flex;justify-content:space-between;margin-bottom:20px}
.rig-stat .rs-val{font-size:22px;font-weight:800;color:#fff;letter-spacing:-0.5px}
.rig-stat .rs-val span{font-size:13px;color:#8CFF2E;font-weight:600}
.rig-stat .rs-lbl{font-size:10px;color:rgba(255,255,255,0.3);text-transform:uppercase;letter-spacing:0.1em;margin-top:2px}

/* Animated hash bar */
.hash-bars{display:flex;align-items:flex-end;gap:4px;height:48px;margin-bottom:16px}
.hbar{
  flex:1;border-radius:3px 3px 0 0;
  background:rgba(140,255,46,0.15);
  animation:hashPulse 1.2s ease-in-out infinite;
  min-height:4px;
}
.hbar:nth-child(1){animation-delay:0s}
.hbar:nth-child(2){animation-delay:0.1s}
.hbar:nth-child(3){animation-delay:0.2s}
.hbar:nth-child(4){animation-delay:0.3s}
.hbar:nth-child(5){animation-delay:0.4s}
.hbar:nth-child(6){animation-delay:0.5s}
.hbar:nth-child(7){animation-delay:0.6s}
.hbar:nth-child(8){animation-delay:0.7s}
.hbar:nth-child(9){animation-delay:0.8s}
.hbar:nth-child(10){animation-delay:0.9s}
.hbar:nth-child(11){animation-delay:1.0s}
.hbar:nth-child(12){animation-delay:1.1s}
@keyframes hashPulse{
  0%,100%{height:20%;background:rgba(140,255,46,0.12)}
  50%{height:100%;background:rgba(140,255,46,0.7)}
}

.rig-progress-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.rig-progress-lbl{font-size:11px;color:rgba(255,255,255,0.35)}
.rig-progress-val{font-size:11px;color:#8CFF2E;font-weight:600}
.rig-progress-bar{height:3px;background:rgba(255,255,255,0.06);border-radius:99px;overflow:hidden;margin-bottom:12px}
.rig-progress-fill{
  height:100%;background:linear-gradient(90deg,#4CAF50,#8CFF2E);
  border-radius:99px;animation:progressGrow 3s ease-in-out infinite alternate;
}
@keyframes progressGrow{from{width:55%}to{width:92%}}

.rig-live-row{
  display:flex;align-items:center;gap:8px;padding-top:12px;
  border-top:1px solid rgba(255,255,255,0.06);
  font-size:12px;color:rgba(255,255,255,0.4);
}
.rig-live-dot{
  width:6px;height:6px;border-radius:50%;background:#22C55E;
  box-shadow:0 0 6px rgba(34,197,94,0.8);
  animation:livePulse 1.5s ease infinite;
}
@keyframes livePulse{0%,100%{opacity:1}50%{opacity:0.4}}
.rig-live-btc{margin-left:auto;font-weight:700;color:#fff;font-size:13px}

/* Floating stat chips — subtle, blended */
.float-chip{
  position:absolute;
  background:rgba(13,13,16,0.5);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.05);
  border-radius:10px;padding:8px 12px;
  font-size:11px;z-index:3;
  opacity:0.5;
}
.fc-1{top:12%;left:8%;animation:chipDrift 6s ease-in-out infinite}
.fc-2{top:18%;right:8%;animation:chipDrift 6s ease-in-out infinite 1.2s}
.fc-3{bottom:18%;left:8%;animation:chipDrift 6s ease-in-out infinite 2.4s}
.fc-4{bottom:12%;right:8%;animation:chipDrift 6s ease-in-out infinite 1.8s}
@keyframes chipDrift{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.fc-label{color:rgba(255,255,255,0.25);font-size:9px;text-transform:uppercase;letter-spacing:0.1em;margin-bottom:2px}
.fc-value{font-weight:600;color:rgba(255,255,255,0.5);font-size:12px}
.fc-value.green{color:rgba(140,255,46,0.5)}
.fc-value.blue{color:rgba(0,153,255,0.5)}

/* ══ TOAST ══════════════════════════════════════════ */
@keyframes fadeSlideUp{from{opacity:0;transform:translateX(-50%) translateY(12px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}

/* ══ FORGOT PASSWORD MODAL ═════════════════════════ */
.modal-overlay{
  position:fixed;inset:0;z-index:999;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;
  transition:opacity 0.3s ease;
}
.modal-overlay.open{opacity:1;pointer-events:all}

.modal-box{
  background:#111114;
  border:1px solid rgba(140,255,46,0.15);
  border-radius:20px;
  padding:40px;
  width:100%;max-width:420px;
  position:relative;
  transform:translateY(24px) scale(0.97);
  transition:transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow:0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(140,255,46,0.08);
}
.modal-overlay.open .modal-box{transform:translateY(0) scale(1)}

.modal-close{
  position:absolute;top:16px;right:16px;
  width:32px;height:32px;border-radius:8px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:rgba(255,255,255,0.4);
  transition:all 0.2s;
}
.modal-close:hover{background:rgba(255,255,255,0.08);color:#fff}
.modal-close svg{width:14px;height:14px}

.modal-icon{
  width:56px;height:56px;border-radius:14px;
  background:rgba(140,255,46,0.06);
  border:1px solid rgba(140,255,46,0.15);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;
  color:rgba(140,255,46,0.7);
}
.modal-icon svg{width:26px;height:26px}
.modal-icon.success{
  background:rgba(140,255,46,0.1);
  border-color:rgba(140,255,46,0.3);
  color:#8CFF2E;
  animation:successPop 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes successPop{from{transform:scale(0.6);opacity:0}to{transform:scale(1);opacity:1}}

.modal-title{
  font-size:22px;font-weight:800;color:#fff;
  letter-spacing:-0.5px;margin-bottom:10px;
}
.modal-sub{
  font-size:14px;color:rgba(255,255,255,0.45);
  line-height:1.7;margin-bottom:24px;
}

/* ══ RESPONSIVE ════════════════════════════════════ */
@media(max-width:900px){
  .auth-layout{grid-template-columns:1fr}
  .auth-anim-panel{display:none}
  .auth-form-panel{padding:32px 28px}
}
@media(max-width:480px){
  .auth-form-panel{padding:24px 20px}
  .auth-heading{font-size:26px}
  .field-row{grid-template-columns:1fr}
}
