:root {
  --primary: #00FF85;
  --primary-2: #00d470;
  --primary-deep: #052b1b;
  --secondary: #1E90FF;
  --accent: #00FF85;
  --font: 'Montserrat', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--primary) rgba(255,255,255,.06); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-2); }
::-webkit-scrollbar-corner { background: transparent; }

body.login-body {
  font-family: var(--font);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(0,255,133,.1), transparent 55%),
    radial-gradient(700px 500px at -10% 110%, rgba(30,144,255,.1), transparent 55%),
    #0D0D0D;
  padding: 30px 20px;
  position: relative;
}
body.login-body::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 30px 30px; }
.login-wrap { position: relative; z-index: 2; width: min(430px, 100%); }

.login-card { background: #151515; border: 1px solid #262626; border-radius: 22px; padding: 38px 36px; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.login-head { text-align: center; margin-bottom: 26px; }
.lock-icon { width: 74px; height: 74px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #1a1a1a; border: 2px solid rgba(0,255,133,.35); box-shadow: 0 12px 28px rgba(0,255,133,.15); padding: 14px; }
.lock-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login-head h1 { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.login-head p { color: #9A9A9A; font-size: .88rem; margin-top: 6px; }

.alert { padding: 13px 16px; border-radius: 12px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.alert-error { background: #2a1212; color: #ff8a8a; border: 1px solid #5c2222; }
.alert-success { background: #0f2418; color: #6bffab; border: 1px solid #1c5233; }

label { display: block; font-size: .8rem; font-weight: 700; color: #d5d5d5; margin: 16px 0 7px; letter-spacing: .3px; }
.input-wrap { position: relative; }
.input-wrap > span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #6b7a74; font-size: 1rem; }
.input-wrap input {
  width: 100%; padding: 14px 44px; border: 1.6px solid #2a2a2a; border-radius: 13px;
  font-family: var(--font); font-size: .95rem; transition: .25s; background: #1d1d1d; color: #fff;
}
.input-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,255,133,.1); background: #222; }
.eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #6b7a74; cursor: pointer; font-size: 1rem; }

.btn-login {
  width: 100%; margin-top: 26px; padding: 15px; border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #04120b;
  font-family: var(--font); font-weight: 700; font-size: 1rem; letter-spacing: .4px; transition: .3s;
  box-shadow: 0 12px 26px rgba(0,255,133,.25);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,255,133,.35); }

.js-invalid { border-color: #ff5d5d !important; box-shadow: 0 0 0 4px rgba(255,93,93,.1) !important; }
.js-error-message { color: #ff6b6b; font-size: .75rem; margin-top: 6px; font-weight: 600; }

.demo-hint { margin-top: 20px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2); padding: 14px 18px; border-radius: 14px; text-align: center; color: rgba(255,255,255,.8); font-size: .8rem; }
.demo-hint code { background: rgba(0,255,133,.15); padding: 2px 8px; border-radius: 6px; font-weight: 700; color: var(--primary); }
.back-home { margin-top: 24px; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600; text-align: center; display: block; transition: .25s; }
.back-home:hover { color: var(--primary); }
