:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
  color: #1b1725;
  background: #f8f7fa;
  --muted: #615c6b;
  --purple: #6740d4;
  --line: #e1dce9;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #7c57e2; outline-offset: 4px; }

.login-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  padding: 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(48px, 8.5vh, 100px);
  min-height: 690px;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, #151020 0%, #151020d9 23%, #15102000 62%),
    url('/assets/hero.webp') center 68% / cover no-repeat, #1c142c;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -.035em;
}
.brand-light { color: #fff; }
.hero-copy { position: relative; }
.eyebrow {
  margin: 0 0 16px;
  color: #d8c6ff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
}
.hero h1, .workspace-banner h1 {
  margin: 0;
  font-size: clamp(36px, 4.55vw, 72px);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero-copy > p:last-child {
  max-width: 260px;
  margin: 22px 0 0;
  color: #dfd6ea;
  line-height: 1.5;
}

.login-panel {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 26px clamp(28px, 5vw, 76px) 8px;
}
.login-content {
  grid-row: 2;
  width: min(100%, 386px);
  padding-block: 24px;
}
.login-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border: 1px solid #e5dbfa;
  border-radius: 13px;
  background: #efe9fc;
  color: #653acd;
}
.login-content h2 {
  margin: 0;
  font-size: clamp(30px, 3.35vw, 44px);
  line-height: 1.1;
  font-weight: 680;
  letter-spacing: -.045em;
}
.subtitle { margin: 12px 0 30px; color: var(--muted); line-height: 1.5; }
.field + .field { margin-top: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 650;
}
.field input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #d9d4e2;
  border-radius: 9px;
  background: #fff;
  color: #1b1725;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #726b7d; opacity: 1; }
.field input:focus {
  border-color: #7c57e2;
  box-shadow: 0 0 0 3px #e9e0ff;
  outline: none;
}
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #61596f;
}
.password-toggle:hover { background: #f2eef8; }
.password-toggle:not([aria-pressed='true']) .eye-slash { display: none; }
.primary-button, .secondary-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 650;
  transition: background .15s;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding: 0 16px;
  min-height: 52px;
  background: var(--purple);
  color: #fff;
}
.primary-button:hover { background: #5631be; }
.secondary-button { padding: 0 15px; border-color: var(--line); color: #251b39; background: #fff; }
.secondary-button:hover { background: #f0ebf9; }

.notice {
  margin: -10px 0 20px;
  padding: 11px 13px;
  border: 1px solid #efd1d9;
  border-radius: 8px;
  background: #fff0f3;
  color: #852340;
  font-size: 14px;
  line-height: 1.45;
}
.access-help { margin-top: 23px; font-size: 14px; }
.access-help summary {
  width: fit-content;
  padding-block: 6px;
  font-weight: 600;
  color: #5635b4;
}
.access-help p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.login-footer {
  grid-row: 3;
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-domain { font-variant-numeric: tabular-nums; }

.workspace-header, .workspace-main {
  width: min(1056px, calc(100% - 40px));
  margin-inline: auto;
}
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.workspace-main { padding-bottom: 52px; }
.workspace-banner {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 20px;
  color: white;
  background: radial-gradient(ellipse at 90% 100%, #503082, #221533 68%);
}
.workspace-banner h1 { max-width: 100%; font-size: clamp(27px, 5vw, 56px); overflow-wrap: anywhere; }
.account { margin: 20px 0 0; color: #e0d3f6; overflow-wrap: anywhere; }
.workspace-documents { margin-top: 36px; }
.workspace-documents h2 { margin: 0 0 16px; font-size: 25px; letter-spacing: -.03em; }
.workspace-documents details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.workspace-documents summary { font-weight: 650; }
.workspace-documents p { max-width: 64ch; color: var(--muted); line-height: 1.55; }
.workspace-documents p:last-child { margin-bottom: 0; }

@media (max-width: 780px) {
  .login-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 12px; }
  .hero {
    min-height: 218px;
    gap: 25px;
    padding: 21px;
    border-radius: 17px;
    background-position: center, 72% 62%;
    background-image: linear-gradient(90deg, #151020 8%, #151020a3 69%, #15102042),
      url('/assets/hero.webp');
  }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero h1 { font-size: clamp(29px, 6.2vw, 45px); }
  .hero-copy > p:last-child { margin-top: 12px; font-size: 13px; }
  .login-panel { grid-template-rows: 1fr auto; padding: 12px 12px 5px; }
  .login-content { grid-row: 1; padding: 24px 0; }
  .login-icon { display: none; }
  .subtitle { margin-bottom: 24px; }
  .login-footer { grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
