:root {
  --bg: #0a1725;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(248, 251, 255, 0.92);
  --primary: #162d5a;
  --primary-dark: #0e1b37;
  --accent: #4f8ce5;
  --accent-dark: #1c5bbf;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.25);
  --danger: #d14343;
  --success: #0f766e;
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(79, 140, 229, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(15, 39, 71, 0.18), transparent 35%),
    linear-gradient(180deg, #eff6ff 0%, #f8fbff 45%, #f9fafb 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 24px;
}

.login-layout {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.brand-panel,
.login-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-panel,
.login-panel,
.card {
  padding: 32px;
}

.brand-panel {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79, 140, 229, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(15, 39, 71, 0.12), transparent 30%);
  pointer-events: none;
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand-panel h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.03;
  margin: 0;
  max-width: 10ch;
}

.brand-panel p,
.muted {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

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

.brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}

.brand-features li::before {
  content: "✓";
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.brand-note {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(15, 64, 136, 0.08);
  border: 1px solid rgba(15, 64, 136, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
}

.login-panel {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px 30px;
}

.auth-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

label {
  display: block;
  margin: 18px 0 10px;
  font-weight: 700;
  color: var(--text);
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: var(--text);
}

input:focus {
  outline: 3px solid rgba(79, 140, 229, 0.18);
  border-color: rgba(79, 140, 229, 0.5);
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 39, 71, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.message {
  min-height: 28px;
  margin: 0;
  font-size: 0.96rem;
}

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

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

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

  .brand-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-body {
    padding: 20px 14px;
  }

  .brand-panel,
  .login-panel,
  .card,
  .auth-card {
    padding: 22px;
    border-radius: 20px;
  }

  .brand-panel h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .auth-card h2 {
    font-size: 1.75rem;
  }

  .brand-features li {
    gap: 0.7rem;
  }
}
