:root {
  --bg-1: #07111f;
  --bg-2: #0b1728;
  --bg-3: #12233d;
  --panel-login: rgba(255, 255, 255, 0.08);
  --panel-border-login: rgba(255, 255, 255, 0.12);
  --text-login: #e5eefb;
  --muted-login: #9db0cc;
  --primary-login: #5b8cff;
  --primary-login-2: #7c9cff;
  --danger-bg-login: rgba(239, 68, 68, 0.12);
  --danger-border-login: rgba(239, 68, 68, 0.25);
  --danger-text-login: #fecaca;
  --info-bg-login: rgba(59, 130, 246, 0.12);
  --info-border-login: rgba(96, 165, 250, 0.22);
  --info-text-login: #dbeafe;
  --pill-bg: rgba(255, 255, 255, 0.08);
  --pill-border: rgba(255, 255, 255, 0.12);
  --pill-warning-bg: rgba(245, 158, 11, 0.16);
  --pill-warning-border: rgba(245, 158, 11, 0.3);
  --pill-warning-text: #fde68a;
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.1);
  --shadow-login: 0 30px 80px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] {
  --bg-1: #020617;
  --bg-2: #0b1120;
  --bg-3: #111827;
}

body {
  min-height: 100vh;
  color: var(--text-login);
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.20), transparent 22%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shell {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero {
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-login);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
}

.hero-top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-login);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-login), #23c7d9);
  box-shadow: 0 14px 40px rgba(91, 140, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.hero p {
  margin: 0;
  color: var(--muted-login);
  max-width: 56ch;
  line-height: 1.7;
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.feature {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-text {
  color: var(--muted-login);
  font-size: 13px;
  line-height: 1.6;
}

.login-panel {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--panel-border-login);
  box-shadow: var(--shadow-login);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4d4ee;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #e5eefb;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
}

.status-pill-warning {
  background: var(--pill-warning-bg);
  border-color: var(--pill-warning-border);
  color: var(--pill-warning-text);
}

.login-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-card p {
  margin: 0 0 28px;
  color: var(--muted-login);
  line-height: 1.7;
  font-size: 14px;
}

.alert,
.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.alert {
  background: var(--danger-bg-login);
  border: 1px solid var(--danger-border-login);
  color: var(--danger-text-login);
}

.notice {
  background: var(--info-bg-login);
  border: 1px solid var(--info-border-login);
  color: var(--info-text-login);
}

form {
  display: grid;
  gap: 18px;
}

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

label {
  font-size: 13px;
  font-weight: 600;
  color: #d9e6fa;
}

input {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-login);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease, opacity .2s ease;
}

input::placeholder {
  color: #7890b1;
}

input:focus {
  border-color: rgba(91, 140, 255, 0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

input:disabled,
.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn {
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-login), var(--primary-login-2));
  box-shadow: 0 18px 38px rgba(91, 140, 255, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(91, 140, 255, 0.42);
}

.submit-btn:active {
  transform: translateY(0);
}

.helper {
  margin-top: 18px;
  color: var(--muted-login);
  font-size: 12px;
  line-height: 1.6;
}

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

  .hero,
  .login-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .hero,
  .login-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .eyebrow-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
