:root {
  --brand: #6b2d8b;
  --brand-deep: #4e1f68;
  --brand-soft: #8b45ad;
  --ink: #1a1523;
  --muted: #5c5368;
  --line: #e8e0ef;
  --paper: #ffffff;
  --wash: #f7f3fa;
  --accent: #6b2d8b;
  --shadow: 0 20px 48px rgba(78, 31, 104, 0.14);
  --font: "Outfit", sans-serif;
  --display: "Sora", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 42% at 92% -8%, rgba(107, 45, 139, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 36% at 0% 100%, rgba(139, 69, 173, 0.1), transparent 52%),
    linear-gradient(180deg, #fbf8fd 0%, var(--wash) 100%);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.brand-name,
.contact-brand {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-name strong,
.contact-brand strong {
  font-weight: 800;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 19%),
    conic-gradient(from 20deg, var(--brand), #f0c94d, var(--brand-soft), var(--brand));
  box-shadow: 0 0 0 2px rgba(107, 45, 139, 0.15);
}

.brand-mark--light {
  background:
    radial-gradient(circle at 50% 50%, var(--brand) 0 18%, transparent 19%),
    conic-gradient(from 20deg, #fff, #f0c94d, #fff);
  box-shadow: none;
}

.site-link {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
}

.site-link:hover {
  color: var(--brand-deep);
}

.layout {
  width: min(1140px, calc(100% - 2rem));
  margin: 1.6rem auto 2rem;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}

.info-col,
.login-panel {
  animation: rise 0.55s ease-out both;
}

.login-panel {
  animation-delay: 0.08s;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--brand);
  line-height: 1.12;
}

.tagline {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.desc {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(107, 45, 139, 0.22);
}

.hi-icon {
  display: inline-flex;
  opacity: 0.95;
}

.visual {
  overflow: hidden;
  border-radius: 1.1rem;
  background: #1a0f24;
  box-shadow: var(--shadow);
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center top;
}

.login-col {
  position: sticky;
  top: 1rem;
}

.login-panel {
  padding: 1.65rem 1.45rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-panel h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.login-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

#portal-form {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="email"] {
  width: 100%;
  border: 1px solid #d5cbe0;
  border-radius: 0.75rem;
  padding: 0.9rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 45, 139, 0.16);
}

.password-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5cbe0;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.password-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 45, 139, 0.16);
}

.password-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0.9rem 0.5rem 0.9rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  outline: none;
  box-shadow: none;
}

.show-pass {
  flex: 0 0 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.show-pass:hover {
  color: var(--brand);
}

.show-pass svg {
  display: block;
}

.show-pass svg[hidden] {
  display: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 99999s ease-in-out 0s;
}

button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

.status.is-ok {
  color: #0f7a45;
}

.status.is-bad {
  color: #b42318;
}

.fineprint {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 45%, var(--brand-soft));
  color: #fff;
}

.contact-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
}

.contact-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-items a {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-items a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .login-col {
    position: static;
    order: -1;
  }

  .visual img {
    max-height: 220px;
  }

  .contact-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .copyright {
    opacity: 0.75;
  }
}
