:root {
  --bg: #081014;
  --panel: #121d24;
  --panel-2: #17242c;
  --line: #2e414c;
  --text: #f4f7f8;
  --muted: #aab8c0;
  --green: #28d17c;
  --green-soft: rgba(40, 209, 124, .14);
  --focus: rgba(40, 209, 124, .32);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(120deg, rgba(15, 30, 38, .98), rgba(9, 44, 31, .92)), #081014;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(8, 16, 20, .92);
  backdrop-filter: blur(16px);
}

.wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar .wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  display: block;
  width: 206px;
  max-width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.nav a:hover {
  background: var(--green-soft);
  color: var(--green);
}

.nav .active {
  border: 1px solid rgba(40, 209, 124, .55);
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 74px);
  padding: 64px 0 44px;
}

.hero.compact {
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, .78fr);
  gap: 50px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.login-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 21, .84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.login-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #0b1116;
}

.login-head strong { font-size: 20px; }
.login-head span { color: var(--muted); font-size: 13px; font-weight: 800; }
.login-body { padding: 28px; }

label { display: block; margin-bottom: 16px; }
label span { display: block; margin-bottom: 7px; color: var(--muted); font-weight: 800; }

input[type="email"],
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0 14px;
  outline: 0;
}

input[type="email"],
input[type="text"],
input[type="password"] { height: 52px; }

textarea {
  min-height: 150px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--focus);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #07100b;
  cursor: pointer;
  font-weight: 900;
}

.login-note {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(40, 209, 124, .45);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-note a,
.form-links a {
  color: var(--green);
  font-weight: 800;
}

.alert {
  margin-bottom: 18px;
  padding: 14px 15px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.alert.success {
  border: 1px solid rgba(40, 209, 124, .55);
  background: var(--green-soft);
}

.alert.error {
  border: 1px solid rgba(239, 100, 97, .55);
  background: rgba(239, 100, 97, .12);
}

.form-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar .wrap { display: block; padding: 14px 0; }
  .nav { margin-top: 12px; flex-wrap: wrap; }
  h1 { font-size: 42px; }
  .login-body { padding: 22px; }
}
