:root {
  --bg-main: #050505;
  --merx-green: #00ff66;
  --text-main: #ffffff;
  --text-muted: #a1a1a1;
  --border-soft: rgba(255, 255, 255, 0.12);
  --shadow-green: 0 0 35px rgba(0, 255, 102, 0.35);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.login-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(0, 255, 102, 0.22), transparent 34%),
    radial-gradient(circle at 25% 80%, rgba(0, 200, 255, 0.12), transparent 32%),
    #050505;
  z-index: -3;
}

.grid-background {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -2;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}

.login-card {
  width: min(100%, 520px);
  padding: 42px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  border: 1px solid var(--border-soft);
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 255, 102, 0.10);
}


.logo {
  display: flex;
  align-items: center;
  width: 120px;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.logo::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--merx-green);
  box-shadow: 0 0 18px var(--merx-green);
  flex-shrink: 0;
}

.eyebrow {
  color: var(--merx-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.login-card h1 {
  font-size: clamp(2.6rem, 8vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}

.login-card h1 span {
  display: block;
  color: var(--merx-green);
  text-shadow: 0 0 30px rgba(0, 255, 102, 0.55);
}

.login-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-main);
  outline: none;
}

.form-group input:focus {
  border-color: var(--merx-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.12);
}

.login-error {
  display: none;
  color: #ff5c5c;
  font-size: 0.9rem;
  font-weight: 700;
}

.login-error.active {
  display: block;
}

.login-btn {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--merx-green);
  color: #001807;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: 0.25s ease;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0, 255, 102, 0.5);
}

.login-help {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.login-help p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.login-help a {
  color: var(--merx-green);
  font-weight: 800;
}

@media (max-width: 560px) {
  .login-card {
    padding: 28px;
  }
}