.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  padding: 48px clamp(40px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(168, 85, 247, 0.22), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(74, 158, 255, 0.2), transparent 32%),
    linear-gradient(145deg, #eee5ff 0%, #f4ecff 45%, #e7f1ff 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(121, 71, 248, 0.12);
  border-radius: 32px;
  pointer-events: none;
}

.brand-mark,
.mobile-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-a-grad);
  box-shadow: 0 0 0 7px var(--accent-a-soft);
}

.brand-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: auto 0;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-a);
  font-weight: 600;
}

.section-tag span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-a);
}

.brand-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -2.8px;
  font-weight: 800;
}

.brand-copy > p:last-child {
  max-width: 550px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.brand-foot {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-orbit {
  position: absolute;
  right: -90px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.85;
}

.orbit,
.data-node { position: absolute; border-radius: 50%; }
.orbit { inset: 50%; border: 1px solid rgba(121, 71, 248, 0.2); transform: translate(-50%, -50%); }
.orbit-one { width: 160px; height: 160px; }
.orbit-two { width: 270px; height: 270px; }
.orbit-three { width: 390px; height: 390px; }
.data-node { width: 16px; height: 16px; background: var(--bg-card-2); border: 4px solid var(--accent-a); box-shadow: var(--shadow-md); }
.node-main { width: 30px; height: 30px; left: 195px; top: 195px; background: var(--accent-a-grad); border: 6px solid white; }
.node-a { left: 78px; top: 115px; }
.node-b { right: 48px; top: 202px; border-color: var(--accent-b); }
.node-c { left: 155px; bottom: 22px; border-color: #5c8a6c; }

.access-panel {
  min-height: 100vh;
  padding: 48px clamp(32px, 6vw, 84px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-base);
}

.mobile-brand { display: none; }

.login-card {
  width: min(100%, 440px);
  margin: auto;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-a);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.login-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 800;
}

.login-intro {
  margin: 10px 0 32px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.field-group { margin-bottom: 22px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--bg-input);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder { color: var(--text-muted); }
input:hover { border-color: rgba(121, 71, 248, 0.32); }
input:focus { outline: none; border-color: var(--accent-a); box-shadow: 0 0 0 4px var(--accent-a-soft); background: white; }
input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.text-button {
  min-height: 36px;
  padding: 0 4px;
  color: var(--accent-a);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--red);
  font-size: 11px;
}

.form-actions { margin-top: 4px; }
.form-actions > a { display: inline-block; margin-bottom: 22px; color: var(--accent-a); font-size: 12px; font-weight: 600; text-decoration: none; }
.form-actions > a:hover { text-decoration: underline; }

.primary-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  color: white;
  border: 0;
  border-radius: 999px;
  background: var(--accent-a-grad);
  box-shadow: 0 10px 24px rgba(121, 71, 248, 0.22);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(121, 71, 248, 0.28); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: 0.72; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading .spinner { display: block; }

.alert {
  margin: 0 0 22px;
  padding: 13px 14px;
  color: var(--red);
  border: 1px solid rgba(224, 82, 82, 0.16);
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  font-size: 12px;
  line-height: 1.55;
}

.support-copy { margin: 26px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.access-panel footer { width: min(100%, 440px); margin: 28px auto 0; color: var(--text-muted); font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: 0.1em; }

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

@media (max-width: 980px) {
  .login-shell { grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr); }
  .brand-panel { padding: 42px; }
  .brand-copy h1 { font-size: clamp(34px, 4.8vw, 48px); letter-spacing: -1.8px; }
  .data-orbit { opacity: 0.5; }
}

@media (max-width: 760px) {
  .login-shell { display: block; min-height: 100vh; overflow: visible; }
  .brand-panel { display: none; }
  .access-panel { min-height: 100vh; justify-content: flex-start; padding: 28px 22px 24px; background: radial-gradient(circle at 10% 0%, rgba(168, 85, 247, 0.12), transparent 32%), var(--bg-base); }
  .mobile-brand { display: flex; margin: 0 4px 48px; }
  .login-card { margin: auto 0; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .access-panel footer { margin-top: 48px; }
}

@media (max-width: 380px) {
  .access-panel { padding-inline: 18px; }
  .mobile-brand { margin-bottom: 36px; }
  .login-card h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

