body {
  background:
    radial-gradient(1200px 600px at 10% 10%, #e7f1ff 0%, rgba(231, 241, 255, 0) 60%),
    radial-gradient(900px 500px at 90% 0%, #f3e8ff 0%, rgba(243, 232, 255, 0) 55%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(111, 66, 193, 0.08)),
    #f8f9fa;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.auth-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(16, 24, 40, 0.18);
  overflow: hidden;
  background: #fff;
}

.auth-card * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.brand-panel {
  position: relative;
  padding: 34px 28px;
  color: #fff;
  background:
    radial-gradient(500px 300px at 20% 10%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(600px 350px at 80% 0%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, rgba(255, 255, 255, 0) 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

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

.brand-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.brand-subtitle {
  opacity: 0.9;
  font-weight: 500;
}

.brand-illustration {
  position: absolute;
  left: -28px;
  top: 92px;
  width: 240px;
  max-width: 85%;
  height: auto;
  display: block;
  opacity: 0.16;
  filter: saturate(1.1) contrast(1.05);
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
}

.form-panel {
  padding: 34px 28px;
  background: #fff;
}

.form-panel form {
  max-width: 420px;
}

.form-panel .subtitle {
  font-size: 0.85rem;
  color: #98a2b3;
}

.login-logo {
  max-width: 140px;
  margin-bottom: 14px;
}

.form-label {
  font-weight: 600;
  color: #344054;
  font-size: 0.9rem;
}

.subtitle {
  color: #6c757d;
  font-size: 0.95rem;
}

.form-control,
.btn,
.input-group-text {
  border-radius: 10px;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-control {
  border-color: #e9ecef;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.form-control::placeholder {
  color: #98a2b3;
}

.form-control:focus {
  border-color: rgba(13, 110, 253, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.14);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  border: none;
  background-image: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.22);
}

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

.btn-outline-secondary {
  border-color: #e9ecef;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
}

.alert {
  border-radius: 12px;
}

.captcha-box {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.captcha-box {
  gap: 6px;
}

.captcha-code {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #495057;
}

.captcha-refresh {
  cursor: pointer;
  color: #6c757d;
  font-size: 14px;
}

.captcha-refresh:hover {
  color: #0d6efd;
}

@media (max-width: 991.98px) {
  .brand-panel {
    padding: 26px 22px;
  }
  .form-panel {
    padding: 26px 22px;
  }
  .brand-illustration {
    left: -18px;
    top: 78px;
    width: 200px;
  }
}
