.auth-login-page {
  min-height: calc(100vh - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 85%, rgba(22, 163, 74, 0.22), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.22), transparent 30%),
    linear-gradient(135deg, #07172a 0%, #0f172a 46%, #111827 100%);
}

.auth-login-shell {
  width: min(1116px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.auth-brand-panel,
.auth-form-card {
  border-radius: 28px;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 36px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(7, 23, 42, 0.96)),
    radial-gradient(circle at 22% 26%, rgba(56, 189, 248, 0.16), transparent 34%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 86%);
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 38%);
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.auth-logo-wrap {
  width: 160px;
  min-height: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.auth-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(14, 165, 233, 0.14))
    drop-shadow(0 2px 8px rgba(59, 130, 246, 0.16));
}

.auth-brand-main {
  margin-top: 40px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand-main h1 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: clamp(52px, 4vw, 64px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 48px rgba(14, 165, 233, 0.14);
}

.auth-brand-main p {
  margin: 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 17px;
  font-weight: 500;
}

.auth-feature-list {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(226, 232, 240, 0.9);
}

.auth-feature-item span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.14);
  color: #7dd3fc;
  font-size: 18px;
}

.auth-feature-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.auth-form-panel {
  display: flex;
  align-items: center;
}

.auth-form-card {
  width: 100%;
  padding: 32px;
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.auth-form-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.auth-header-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 24px;
}

.auth-form-header h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-form-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.auth-messages {
  margin-bottom: 18px;
}

.auth-messages .alert {
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
}

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

.auth-field label {
  display: inline-block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

.auth-field label span {
  color: #ef4444;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap > i {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #334155;
  opacity: 0.58;
  font-size: 18px;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 14px 48px 14px 48px;
  border: 1px solid #d6e0ef;
  border-radius: 16px;
  background: #f3f6fb;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.auth-input-wrap input:focus {
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.auth-field small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  transform: translateY(-50%);
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.auth-password-toggle:hover {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.auth-check-custom {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  position: relative;
  transition: all 0.18s ease;
}

.auth-check input:focus-visible + .auth-check-custom {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.auth-check input:checked + .auth-check-custom {
  background: #0ea5e9;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.auth-check input:checked + .auth-check-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-check-label {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.auth-link {
  color: #64748b;
  opacity: 0.92;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  color: #0ea5e9;
}

.auth-submit-btn {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.26);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(2, 132, 199, 0.32);
}

.auth-submit-btn:disabled,
.auth-submit-btn.is-loading {
  opacity: 0.78;
  cursor: wait;
  transform: none;
}

.auth-register-box {
  margin-top: 2px;
  padding: 18px;
  text-align: center;
  border: 1px dashed rgba(2, 132, 199, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.auth-register-box p {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.auth-register-box a {
  color: #0369a1;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.auth-register-box a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .auth-login-page {
    align-items: flex-start;
    padding: 14px;
    overflow: hidden;
  }

  .auth-login-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-brand-panel {
    min-height: 280px;
    padding: 24px;
  }

  .auth-brand-content {
    gap: 22px;
    justify-content: space-between;
  }

  .auth-logo-wrap {
    width: 110px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(14, 165, 233, 0.18));
  }

  .auth-brand-main {
    margin: 0;
  }

  .auth-brand-main h1 {
    font-size: 42px;
  }

  .auth-feature-list {
    display: none;
  }

  .auth-form-card {
    padding: 24px;
    border-radius: 24px;
  }
}

@media (max-width: 575px) {
  .auth-login-page {
    overflow: hidden;
    min-height: 100vh;
    padding: 10px;
  }

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

  .auth-form-card {
    padding: 22px;
    border-radius: 22px;
  }

  .auth-form-header {
    align-items: flex-start;
  }

  .auth-form-header h2 {
    font-size: 21px;
  }

  .auth-form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .auth-brand-main h1 {
    font-size: 32px;
  }

  .auth-brand-main p {
    font-size: 15px;
  }
}
