* {
  box-sizing: border-box;
}

:root {
  --primary: #155fd6;
  --primary-dark: #0f3f9f;
  --primary-soft: #eaf2ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --card: rgba(255,255,255,.90);
  --shadow: 0 28px 80px rgba(15,23,42,.22);
}

html {
  -webkit-text-size-adjust: 100%;
}

body.login-premium-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(37,99,235,.34), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(14,165,233,.30), transparent 30%),
    linear-gradient(135deg, #071634, #0f4fd8 48%, #edf6ff);
  overflow-x: hidden;
}

.login-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  padding: 26px;
  gap: 26px;
}

.login-brand-panel,
.login-card-panel {
  border-radius: 34px;
  position: relative;
  overflow: hidden;
}

.login-brand-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.06)),
    linear-gradient(135deg, rgba(15,23,42,.36), rgba(21,95,214,.34));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  padding: 46px;
  color: white;
  min-height: calc(100vh - 52px);
}

.brand-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.brand-orb-1 {
  width: 330px;
  height: 330px;
  right: -110px;
  top: -90px;
  background: rgba(255,255,255,.16);
}

.brand-orb-2 {
  width: 240px;
  height: 240px;
  left: -80px;
  bottom: 70px;
  background: rgba(125,211,252,.18);
}

.brand-content {
  max-width: 590px;
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
  margin-bottom: 26px;
}

.brand-mark span {
  font-weight: 950;
  font-size: 34px;
  letter-spacing: -.08em;
}

.brand-mark.small {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin: 0;
  background: linear-gradient(135deg, var(--primary), #0f172a);
  color: white;
}

.brand-mark.small span {
  font-size: 20px;
}

.brand-content h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -.06em;
  line-height: .95;
}

.brand-content p {
  margin: 20px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.55;
  max-width: 520px;
}

.brand-points {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.brand-points div {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.brand-points strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,.95);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.login-card-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.login-card {
  width: 470px;
  max-width: 100%;
  background: var(--card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.mobile-brand {
  display: none;
}

.login-heading {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 850;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.login-heading h2 {
  margin: 16px 0 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text);
}

.login-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 18px;
  padding: 13px 14px;
  font-weight: 750;
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  margin: 16px 0 7px;
  color: #334155;
  font-weight: 800;
  font-size: 14px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 18px;
  padding: 0 15px;
  transition: .18s ease;
}

.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21,95,214,.13);
}

.input-wrap span {
  flex: 0 0 auto;
  opacity: .85;
}

.input-wrap input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  min-height: 54px;
  font-size: 16px;
  color: var(--text);
}

.input-wrap input::placeholder {
  color: #94a3b8;
}

.login-form button {
  position: relative;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 900;
  font-size: 16px;
  margin-top: 24px;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(21,95,214,.28);
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(21,95,214,.34);
}

.login-form button.loading .btn-text {
  opacity: .22;
}

.btn-loader {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.login-form button.loading .btn-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

.login-footer span {
  display: block;
  font-weight: 850;
  color: #334155;
}

.login-footer small {
  display: block;
  margin-top: 4px;
}

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

  .login-brand-panel {
    display: none;
  }

  .login-card-panel {
    min-height: 100vh;
    padding: 0;
  }

  .login-card {
    width: min(460px, 100%);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .mobile-brand strong {
    display: block;
    font-size: 18px;
    color: var(--text);
  }

  .mobile-brand small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
  }
}

@media (max-width: 520px) {
  body.login-premium-body {
    background:
      radial-gradient(circle at 20% 0%, rgba(37,99,235,.30), transparent 38%),
      linear-gradient(180deg, #eff6ff, #f8fafc);
  }

  .login-shell {
    padding: 12px;
    min-height: 100vh;
  }

  .login-card-panel {
    align-items: center;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15,23,42,.12);
  }

  .login-heading h2 {
    font-size: 28px;
  }

  .login-heading p {
    font-size: 14px;
  }

  .input-wrap,
  .input-wrap input {
    min-height: 54px;
  }

  .login-form button {
    min-height: 56px;
  }
}

@media (max-width: 360px) {
  .login-card {
    padding: 20px 16px;
  }

  .login-heading h2 {
    font-size: 25px;
  }
}
