:root {
  --solera-deep: #12051f;
  --solera-dark: #241035;
  --solera-primary: #6d28d9;
  --solera-secondary: #8b5cf6;
  --solera-accent: #e0aaff;
  --solera-soft: #f7f0ff;
  --solera-border: #e8ddf8;
  --solera-text: #241035;
  --solera-muted: #6b5b7b;
  --solera-white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
button, input { font: inherit; }

body.solera-login-page {
  min-height: 100vh;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  color: var(--solera-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(224, 170, 255, .30), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(109, 40, 217, .36), transparent 30%),
    linear-gradient(135deg, #12051f 0%, #241035 48%, #3b1462 100%);
}
body.solera-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.solera-login-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}
.solera-login-card {
  width: 100%;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(310px, .9fr) minmax(410px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(224, 170, 255, .35);
  border-radius: 34px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.solera-login-brand-panel {
  position: relative;
  min-height: 600px;
  padding: 54px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(224, 170, 255, .30), transparent 34%),
    linear-gradient(160deg, #160722 0%, #2d1245 55%, #6d28d9 100%);
}
.solera-login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .04), transparent 42%);
}
.solera-login-logo {
  position: relative;
  z-index: 2;
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}
.solera-login-brand-copy {
  position: relative;
  z-index: 2;
  max-width: 360px;
}
.solera-login-brand-copy > span {
  display: inline-flex;
  min-height: 28px;
  padding: 0 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: var(--solera-accent);
  background: rgba(255, 255, 255, .10);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.solera-login-brand-copy h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.055em;
}
.solera-login-brand-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .96rem;
  line-height: 1.6;
  font-weight: 700;
}
.solera-login-brand-orbit {
  position: absolute;
  right: -130px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 54px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.solera-login-form-panel {
  min-width: 0;
  padding: 62px 58px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
}
.solera-login-title { margin-bottom: 30px; }
.solera-login-title > span {
  display: inline-flex;
  min-height: 27px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  color: var(--solera-primary);
  background: var(--solera-soft);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.solera-login-title h2 {
  margin: 12px 0 7px;
  color: var(--solera-text);
  font-size: 2.15rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.05em;
}
.solera-login-title p { margin: 0; color: var(--solera-muted); font-weight: 750; }

.solera-field { margin-bottom: 19px; }
.solera-field label {
  display: block;
  margin: 0 0 9px;
  color: var(--solera-text);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.solera-input-wrap { position: relative; display: flex; align-items: center; }
.solera-input-wrap > i {
  position: absolute;
  left: 18px;
  z-index: 2;
  color: var(--solera-primary);
  font-size: 1rem;
}
.solera-input-wrap input {
  width: 100%;
  height: 57px;
  padding: 0 56px 0 48px;
  outline: 0;
  border: 1.7px solid var(--solera-border);
  border-radius: 18px;
  color: var(--solera-text);
  background: #fff;
  font-size: .98rem;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(43, 23, 64, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.solera-input-wrap input:focus {
  border-color: var(--solera-primary);
  box-shadow: 0 0 0 .22rem rgba(109, 40, 217, .13), 0 12px 24px rgba(43, 23, 64, .08);
  transform: translateY(-1px);
}
.solera-password-toggle {
  position: absolute;
  right: 9px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--solera-primary);
  background: var(--solera-soft);
}
.solera-login-submit {
  width: 100%;
  height: 59px;
  margin-top: 7px;
  border: 0;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #241035, #6d28d9);
  font-size: .96rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
  box-shadow: 0 20px 44px rgba(109, 40, 217, .26);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.solera-login-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 26px 52px rgba(109, 40, 217, .32);
}
.solera-login-meta {
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--solera-border);
  color: var(--solera-muted);
  font-size: .8rem;
  font-weight: 850;
}
.solera-login-meta i { margin-right: 6px; color: var(--solera-primary); }

@media (max-width: 820px) {
  body.solera-login-page { padding: 20px; }
  .solera-login-card { grid-template-columns: 1fr; min-height: 0; border-radius: 28px; }
  .solera-login-brand-panel { min-height: 245px; padding: 34px; }
  .solera-login-logo { width: 220px; }
  .solera-login-brand-copy { margin-top: 48px; }
  .solera-login-brand-copy h1 { font-size: 2rem; }
  .solera-login-brand-copy p { display: none; }
  .solera-login-form-panel { padding: 38px 34px 32px; }
}
@media (max-width: 520px) {
  body.solera-login-page { padding: 14px; }
  .solera-login-card { border-radius: 24px; }
  .solera-login-brand-panel { min-height: 205px; padding: 28px; }
  .solera-login-logo { width: 190px; }
  .solera-login-brand-copy { margin-top: 34px; }
  .solera-login-brand-copy h1 { font-size: 1.75rem; }
  .solera-login-form-panel { padding: 32px 24px 26px; }
  .solera-login-title h2 { font-size: 1.8rem; }
  .solera-login-meta { font-size: .73rem; }
}
