:root {
  --primary: #1152d4;
  --background-light: #f6f6f8;
  --background-dark: #101622;
  --navy-brand: #0d1b3e;
  --ink: #0f172a;
  --muted: #64748b;
  --card-border: #e2e8f0;
  --white: #ffffff;
}

body {
  background: var(--background-light);
  color: var(--ink);
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.login-brand {
  position: relative;
  display: none;
  background: var(--navy-brand);
  color: #fff;
  overflow: hidden;
}

.brand-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
}

.brand-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 82, 212, 0.25) 0%, rgba(13, 27, 62, 0) 100%);
  filter: blur(60px);
}

.brand-glow--top {
  top: -120px;
  left: -120px;
}

.brand-glow--bottom {
  bottom: -120px;
  right: -120px;
  transform: rotate(180deg);
}

.brand-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 64px 72px;
  display: grid;
  gap: 32px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-logo__icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.brand-logo__icon svg {
  width: 24px;
  height: 24px;
}

.brand-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
}

.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.05rem;
}

.brand-list li {
  display: flex;
  gap: 12px;
}

.brand-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(17, 82, 212, 0.7);
}

.brand-preview {
  margin-top: 12px;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

.brand-preview__image {
  height: 220px;
  border-radius: 12px;
  background-image: linear-gradient(135deg, rgba(17, 82, 212, 0.3), rgba(13, 27, 62, 0.4)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuA2CbxmLDAficbuhRqk1Gz2LYU_LHE55sTjIFHjrW2buLGZhjgj4u1pBC62PW8rSh8FsTxXvyaVJL2XD5dmpIodn9zc5VOOcL4vdOBDm5PQbm2svwowX_C1JCEaTE5KwP-vnA9UoevhSeafanLxfqbLO9uwPR45tglI1eTFM0ci8oOl3ZwqnmPyiODhddXM9AwsyS4Gj6BmPbR-tvZs7eX9h8NX02r-L3JGnh40sNAK6yBkaUomuwyfb5fVQGFF1w-xaC5KjVN7Zug");
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #fff;
}

.login-container {
  width: min(420px, 100%);
  display: grid;
  gap: 28px;
}

.login-mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-brand);
}

.login-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.login-header p {
  margin: 0;
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
}

.field input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 0 14px;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(17, 82, 212, 0.12);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 500;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

.primary-btn {
  height: 52px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(17, 82, 212, 0.2);
}

.primary-btn:hover {
  background: #0d46b5;
}

.link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

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

.login-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.form-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .login-shell {
    grid-template-columns: 1fr 1fr;
  }

  .login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login-panel {
    padding: 72px 64px;
  }

  .login-mobile-logo {
    display: none;
  }
}

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

  .login-footer {
    flex-direction: column;
    align-items: center;
  }
}
