/* LOGIN_MODERN_STYLE_V1 */
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --purple-950: #24103f;
  --purple-900: #301653;
  --purple-800: #43266f;
  --purple-700: #56358b;
  --purple-600: #6546aa;
  --green-600: #159b6d;
  --green-500: #19ba80;
  --ink: #201b29;
  --muted: #746d7c;
  --line: #e6e1e9;
  --surface: #ffffff;
  --soft: #f7f5f9;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: #f6f4f8;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-page {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(480px, 0.95fr);
  min-height: 100vh;
}

.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 16%, rgba(25, 186, 128, 0.22), transparent 27%),
    linear-gradient(145deg, var(--purple-950) 0%, var(--purple-800) 57%, #3c286b 100%);
  color: #fff;
}

.login-showcase::after {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
  pointer-events: none;
}

.showcase-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.showcase-glow-one {
  top: -150px;
  right: -130px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255,255,255,.13);
}

.showcase-glow-two {
  right: -90px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  background: rgba(25,186,128,.10);
}

.showcase-brand, .showcase-content, .showcase-footer {
  position: relative;
  z-index: 1;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(17,7,31,.25);
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand-copy small { color: rgba(255,255,255,.66); font-size: 11px; }

.showcase-content {
  width: min(100%, 600px);
  margin: auto 0;
  padding: 64px 0 38px;
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #73e0b8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
}

.showcase-kicker::before {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
  content: "";
}

.showcase-content h1 {
  max-width: 560px;
  margin: 17px 0 18px;
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.showcase-content > p {
  max-width: 535px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.7;
}

.showcase-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.showcase-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.86);
  font-size: 11px;
}

.showcase-points i {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(25,186,128,.22);
  color: #72e2b9;
  font-size: 10px;
  font-style: normal;
}

.showcase-preview {
  width: min(100%, 460px);
  margin-top: 32px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 24px 55px rgba(15,5,29,.24);
  backdrop-filter: blur(12px);
}

.preview-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.preview-avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--purple-600), var(--green-500)); font-size: 9px; font-weight: 800; }
.preview-top div { display: grid; gap: 2px; }
.preview-top b { font-size: 11px; }
.preview-top small { color: rgba(255,255,255,.55); font-size: 9px; }
.preview-top em { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #32d296; box-shadow: 0 0 0 4px rgba(50,210,150,.12); }
.preview-message { width: fit-content; max-width: 84%; margin-top: 8px; padding: 9px 11px; border-radius: 11px; font-size: 10px; line-height: 1.45; }
.preview-message-in { border-bottom-left-radius: 3px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.82); }
.preview-message-out { margin-left: auto; border-bottom-right-radius: 3px; background: rgba(25,186,128,.24); color: #e7fff6; }

.showcase-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.46);
  font-size: 10px;
}

.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--green-500); }

.login-access {
  display: grid;
  min-height: 100vh;
  padding: clamp(26px, 5vw, 72px);
  place-items: center;
  background:
    radial-gradient(circle at 92% 8%, rgba(101,70,170,.07), transparent 25%),
    #fbfafc;
}

.login-card { width: min(100%, 430px); }
.mobile-brand { display: none; }

.login-heading { margin-bottom: 31px; }
.access-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--purple-600); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.access-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(25,186,128,.10); }
.login-heading h2 { margin: 0; color: #21192a; font-size: clamp(29px, 3vw, 38px); font-weight: 720; letter-spacing: -.035em; }
.login-heading p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.field-group { margin-bottom: 18px; }
.field-group label { display: block; margin-bottom: 7px; color: #443d4b; font-size: 11px; font-weight: 650; }
.field-control { position: relative; display: flex; align-items: center; }
.field-control > svg { position: absolute; left: 14px; z-index: 1; width: 18px; height: 18px; fill: none; stroke: #908898; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; pointer-events: none; }
.field-control input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 43px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(52,37,72,.025);
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-control input::placeholder { color: #aaa3af; }
.field-control input:hover { border-color: #d4ccd9; }
.field-control input:focus { border-color: var(--purple-600); background: #fff; box-shadow: 0 0 0 4px rgba(101,70,170,.10); }
.field-control:focus-within > svg { stroke: var(--purple-600); }
.field-password input { padding-right: 78px; }
.password-toggle { position: absolute; right: 8px; height: 34px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--purple-700); cursor: pointer; font-size: 10px; font-weight: 650; }
.password-toggle:hover { background: var(--soft); }
.password-toggle:focus-visible { outline: 2px solid var(--purple-600); outline-offset: 1px; }
.caps-warning { display: block; margin-top: 6px; color: #a76212; font-size: 10px; }

.login-message { display: none; min-height: 39px; margin: -2px 0 14px; padding: 9px 11px; border: 1px solid #f0c9cd; border-radius: 8px; background: #fff4f5; color: #a53542; font-size: 11px; line-height: 1.45; }
.login-message:not(:empty) { display: block; }

.login-button {
  position: relative;
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(100deg, var(--purple-800), var(--purple-600));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 13px 25px rgba(67,38,111,.20);
  font-size: 12px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.login-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 29px rgba(67,38,111,.25); }
.login-button:focus-visible { outline: 3px solid rgba(25,186,128,.35); outline-offset: 3px; }
.login-button:disabled { cursor: wait; opacity: .75; }
.button-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: login-spin .75s linear infinite; }
.login-button.is-loading .button-label { display: none; }
.login-button.is-loading .button-spinner { display: block; }

.security-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 12px 13px; border: 1px solid #e6eee9; border-radius: 10px; background: #f6fbf8; color: #66716a; font-size: 10px; line-height: 1.45; }
.security-note svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: var(--green-600); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.login-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 27px; padding-top: 17px; border-top: 1px solid #ece8ef; color: #98919d; font-size: 9.5px; }

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

@media (max-width: 980px) {
  .login-page { grid-template-columns: minmax(360px, .85fr) minmax(440px, 1.15fr); }
  .showcase-preview { display: none; }
}

@media (max-width: 760px) {
  .login-page { display: block; min-height: 100vh; }
  .login-showcase { display: none; }
  .login-access { min-height: 100vh; padding: 28px 20px; }
  .mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 42px; }
  .mobile-brand img { width: 42px; height: 42px; padding: 4px; object-fit: contain; border-radius: 12px; background: var(--purple-800); }
  .mobile-brand span { display: grid; gap: 2px; }
  .mobile-brand strong { color: var(--purple-900); font-size: 14px; }
  .mobile-brand small { color: var(--muted); font-size: 9px; }
}

@media (max-width: 420px) {
  .login-access { align-items: start; padding-top: 24px; }
  .mobile-brand { margin-bottom: 35px; }
  .login-heading { margin-bottom: 27px; }
  .login-heading h2 { font-size: 29px; }
  .field-control input, .login-button { height: 48px; }
}

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