:root {
  --bg: #07111f;
  --bg-soft: rgba(11, 24, 44, 0.82);
  --panel: rgba(9, 17, 30, 0.82);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f3f7ff;
  --muted: #98a6bf;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #4f8cff;
  --primary-hover: #3f78e6;
  --danger: #ff7a7a;
  --success: #4bc690;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.24), transparent 32%),
    radial-gradient(circle at bottom right, rgba(72, 219, 187, 0.18), transparent 28%),
    var(--bg);
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding-top: 26px;
}

.site-mark {
  position: fixed;
  top: 26px;
  left: 32px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.site-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.24));
}

.site-name {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.site-name strong {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-name span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-panel,
.auth-panel {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-wrap,
.card {
  width: min(100%, 520px);
}

.brand-wrap {
  padding: 56px 16px 16px;
}

.eyebrow {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e5ff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-wrap h1 {
  margin: 20px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.brand-wrap p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.value-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.value-list li {
  position: relative;
  padding-left: 28px;
  color: #dce6fb;
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #66e5bc);
}

.card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.card-header h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.card-header p {
  margin: 0 0 24px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.94rem;
  color: #d7e2f8;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: #7d8ca8;
}

.field input:focus {
  border-color: rgba(79, 140, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 88px;
}

.ghost-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #d8e4ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
}

.form-row {
  display: flex;
  justify-content: flex-end;
}

.primary-button {
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #69b0ff);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 14px 26px rgba(79, 140, 255, 0.32);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  color: #cfe0ff;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: white;
}

.status {
  margin-top: 18px;
  min-height: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding-top: 86px;
  }

  .brand-panel {
    padding-bottom: 0;
  }

  .auth-panel {
    padding-top: 24px;
  }

  .brand-wrap {
    padding-top: 16px;
  }
}

@media (max-width: 640px) {
  .site-mark {
    left: 22px;
    top: 20px;
    gap: 12px;
  }

  .site-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .site-name span {
    letter-spacing: 0.12em;
  }

  .brand-panel,
  .auth-panel {
    padding: 22px;
  }

  .card {
    padding: 24px;
  }

  .brand-wrap h1 {
    font-size: 2rem;
  }
}

.hidden { display: none !important; }
