:root {
  --bg-1: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: rgba(15, 23, 42, 0.78);
  --stroke: rgba(148, 163, 184, 0.22);
  --input-bg: rgba(15, 23, 42, 0.6);
  --accent: #60a5fa;
  --error: #f87171;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
}

body {
  background: #020617;
  display: flex;
  flex-direction: column;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(29, 78, 216, 0.35), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(147, 51, 234, 0.35), transparent 60%),
    linear-gradient(145deg, var(--bg-1), #020617 55%, #111827);
}

/* ── Layout ── */

.page {
  flex: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 48px auto 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

/* ── Hero ── */

.hero {
  padding: 12px 16px;
}

.hero__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfdbfe;
  border: 1px solid rgba(191, 219, 254, 0.4);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
}

.hero > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  max-width: 500px;
  line-height: 1.65;
}

.features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

.feature__icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.hero__img {
  display: block;
  width: min(460px, 100%);
  opacity: 0.9;
}

/* ── Card ── */

.card {
  backdrop-filter: blur(18px);
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.9);
  flex-shrink: 0;
}

.brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
}

.muted {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Form ── */

form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 4px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
}

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  height: auto;
  width: auto;
  margin: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.eye-btn:hover {
  filter: none;
  color: var(--accent);
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: var(--input-bg);
  color: #f8fafc;
  border-radius: 12px;
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="password"] {
  padding-right: 44px;
}

input::placeholder {
  color: #475569;
}

input:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

input.invalid {
  border-color: rgba(248, 113, 113, 0.6);
}

.field__error {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
  line-height: 1.4;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 2px;
  gap: 8px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
  margin: 0;
}

.checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 4px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.link:hover {
  text-decoration: underline;
}

button[type="submit"],
button#submitBtn {
  margin-top: 14px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.12s ease, opacity 0.12s ease;
  letter-spacing: 0.01em;
}

button[type="submit"]:hover,
button#submitBtn:hover {
  filter: brightness(1.08);
}

button[type="submit"]:active,
button#submitBtn:active {
  transform: translateY(1px);
}

button[type="submit"]:disabled,
button#submitBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Divider ── */

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: #334155;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

/* ── SSO button ── */

.sso-btn {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sso-btn:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.06);
  filter: none;
}

/* ── Hint ── */

.hint {
  margin: 16px 0 0;
  text-align: center;
  color: #475569;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ── Footer ── */

.footer {
  text-align: center;
  padding: 18px 20px;
  color: #334155;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
}

.footer a {
  color: #475569;
  text-decoration: none;
}

.footer a:hover {
  color: var(--muted);
}

.footer__sep {
  opacity: 0.5;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero {
    padding: 0 4px;
  }

  .hero__img {
    width: min(340px, 80%);
    margin: 16px auto 0;
  }
}
