:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687187;
  --line: #dfe4ed;
  --soft-line: #e9edf3;
  --panel: #f6f8fc;
  --brand: #3159d7;
  --brand-dark: #2448bd;
  --brand-soft: #edf2ff;
  --danger: #b83b50;
  --danger-soft: #fff1f3;
  --shadow: 0 24px 70px rgba(32, 46, 82, 0.14);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--panel); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--panel);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button { color: inherit; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(49, 89, 215, 0.2);
  outline-offset: 2px;
}

.site-shell { min-height: 100vh; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid rgba(220, 225, 235, 0.84);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #5579ef, #2448bd);
  box-shadow: 0 6px 15px rgba(49, 89, 215, 0.25);
}

.brand-cloud {
  position: relative;
  display: block;
  width: 19px;
  height: 9px;
  margin-top: 5px;
  border-radius: 8px;
  background: white;
}

.brand-cloud::before,
.brand-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: white;
}

.brand-cloud::before { width: 10px; height: 10px; left: 2px; top: -5px; }
.brand-cloud::after { width: 8px; height: 8px; right: 1px; top: -3px; }

.brand-name { font-size: 19px; font-weight: 720; letter-spacing: -0.45px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.text-button,
.language-button,
.inline-button,
.page-footer button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button,
.language-button {
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  color: #505a70;
  font-size: 14px;
}

.text-button:hover,
.language-button:hover { background: #f0f3f8; }

.language-button { display: inline-flex; align-items: center; gap: 7px; }
.language-button > span:first-child { font-size: 18px; }
.chevron { margin-top: -4px; font-size: 16px; }

.main-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
  padding-top: 74px;
}

.product-panel {
  position: relative;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  padding: clamp(52px, 8vh, 92px) clamp(42px, 6vw, 96px) 40px;
  background:
    radial-gradient(circle at 10% 15%, rgba(118, 151, 255, 0.19), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(67, 104, 220, 0.14), transparent 36%),
    linear-gradient(150deg, #f2f5ff 0%, #eef3ff 48%, #f8faff 100%);
}

.product-panel::before,
.product-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(77, 111, 214, 0.1);
  border-radius: 50%;
}

.product-panel::before { width: 620px; height: 620px; left: -350px; bottom: -380px; }
.product-panel::after { width: 440px; height: 440px; right: -290px; top: -170px; }

.product-copy { position: relative; z-index: 2; max-width: 650px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #3c5fca;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5e7fe8;
  box-shadow: 0 0 0 5px rgba(94, 127, 232, 0.13);
}

h1 {
  max-width: 620px;
  margin: 0;
  color: #182340;
  font-size: clamp(38px, 4.25vw, 64px);
  font-weight: 720;
  line-height: 1.07;
  letter-spacing: -2.8px;
}

.product-copy > p {
  max-width: 590px;
  margin: 22px 0 0;
  color: #65718d;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-list li > span:last-child { display: grid; }
.feature-list strong { color: #2b3858; font-size: 13px; font-weight: 700; }
.feature-list small { color: #7c87a1; font-size: 11px; line-height: 1.5; }

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(66, 95, 187, 0.14);
  border-radius: 9px;
  color: #4161c5;
  background: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.shield-icon::before {
  content: "";
  width: 10px;
  height: 12px;
  border: 1.8px solid #4161c5;
  border-radius: 6px 6px 8px 8px;
  clip-path: polygon(50% 0, 100% 20%, 87% 78%, 50% 100%, 13% 78%, 0 20%);
}

.shield-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 2px;
  border-left: 1.5px solid #4161c5;
  border-bottom: 1.5px solid #4161c5;
  transform: rotate(-45deg);
}

.workspace-preview {
  position: relative;
  z-index: 2;
  width: min(690px, 94%);
  margin: clamp(40px, 6vh, 66px) auto 0;
  transform: perspective(1500px) rotateX(1.5deg) rotateY(-2deg);
  transform-origin: center;
}

.preview-window {
  height: 300px;
  display: grid;
  grid-template-columns: 108px 1fr;
  overflow: hidden;
  border: 1px solid rgba(88, 110, 168, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(42, 65, 126, 0.18);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  padding: 21px 16px;
  border-right: 1px solid #edf0f5;
  background: #fafbfe;
}

.preview-logo { width: 26px; height: 26px; margin: 0 0 24px 7px; border-radius: 8px; background: linear-gradient(145deg, #6684ea, #3159d7); }
.side-line { width: 62px; height: 8px; margin: 9px 0; border-radius: 6px; background: #dfe4ee; }
.side-line.short { width: 47px; }
.side-line.active { width: 74px; height: 28px; margin: 0 0 6px; background: #e9efff; }
.side-spacer { flex: 1; }
.storage-ring { width: 34px; height: 34px; margin-left: 2px; border: 5px solid #e7eaf1; border-top-color: #5776d8; border-radius: 50%; }

.preview-content { padding: 24px 27px; }
.preview-head { display: flex; align-items: center; margin-bottom: 20px; color: #25314d; font-size: 18px; font-weight: 730; }
.preview-head span { flex: 1; }
.preview-head i { width: 27px; height: 27px; margin-left: 8px; border: 1px solid #e1e5ed; border-radius: 7px; }
.preview-head i:last-child { background: #4264ce; }

.folder-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.folder-card { display: grid; grid-template-columns: 31px 1fr; grid-template-rows: auto auto; align-items: center; padding: 13px; border: 1px solid #e7eaf1; border-radius: 10px; }
.folder-card span { color: #35415c; font-size: 11px; font-weight: 680; }
.folder-card small { color: #9aa2b2; font-size: 8px; }
.folder-shape { grid-row: 1 / 3; width: 22px; height: 16px; margin-right: 8px; border-radius: 3px; background: #6081e6; }
.folder-shape::before { content: ""; display: block; width: 10px; height: 4px; margin-top: -3px; border-radius: 3px 3px 0 0; background: inherit; }
.folder-shape.coral { background: #e1847c; }
.folder-shape.green { background: #5fb29b; }

.file-heading { display: flex; align-items: center; margin: 19px 0 6px; color: #667188; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.file-heading span { flex: 1; }
.file-heading i { width: 18px; height: 4px; border-radius: 2px; background: #e0e4ec; }
.file-row { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; min-height: 42px; border-bottom: 1px solid #eff1f5; }
.file-row:last-child { border-bottom: 0; }
.file-row > span { display: grid; }
.file-row strong { color: #39445c; font-size: 9px; font-weight: 650; }
.file-row small, .file-row em { color: #9aa2b2; font-size: 7px; font-style: normal; }
.file-type { display: grid; place-items: center; width: 20px; height: 24px; border-radius: 4px; color: #3f67d8; background: #e9efff; font-size: 8px; }
.file-type.rose { color: #d75a6e; background: #fff0f2; }
.file-type.amber { color: #ba7a1c; background: #fff5df; }

.sync-card {
  position: absolute;
  right: -24px;
  bottom: -23px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 222px;
  padding: 13px 16px;
  border: 1px solid rgba(93, 113, 161, 0.15);
  border-radius: 13px;
  background: white;
  box-shadow: 0 14px 35px rgba(38, 56, 100, 0.16);
}

.sync-card > span:last-child { display: grid; }
.sync-card strong { color: #3b465f; font-size: 11px; }
.sync-card small { margin-top: 2px; color: #929bac; font-size: 9px; }
.sync-check { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: white; background: #41a37f; font-size: 13px; font-weight: 800; }

.signin-panel {
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px clamp(34px, 5vw, 78px) 24px;
  background: #fff;
}

.signin-card { width: min(100%, 430px); }
.mobile-brand { display: none; }
.signin-heading { margin-bottom: 28px; }
.signin-heading h2 { margin: 0; color: #192237; font-size: 31px; font-weight: 720; letter-spacing: -0.9px; }
.signin-heading p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }

.sso-button,
.signin-button {
  width: 100%;
  height: 48px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 680;
}

.sso-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d9dee7;
  color: #344058;
  background: white;
}

.sso-button:hover { border-color: #bfc7d6; background: #fafbfc; }
.sso-symbol { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; }
.sso-symbol i { width: 6px; height: 6px; background: #4971dd; }
.sso-symbol i:nth-child(2) { background: #e46e69; }
.sso-symbol i:nth-child(3) { background: #55a885; }
.sso-symbol i:nth-child(4) { background: #e2a640; }

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: #9199aa; font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--soft-line); }

.field-group { margin-bottom: 17px; }
.field-group label { color: #344057; font-size: 13px; font-weight: 680; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.field-group > label { display: block; margin-bottom: 8px; }

.inline-button { padding: 0; color: var(--brand); font-size: 12px; font-weight: 650; }
.inline-button:hover { color: var(--brand-dark); text-decoration: underline; }

.field-group input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  color: #202a3f;
  background: white;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-group input::placeholder { color: #a3aaba; }
.field-group input:hover { border-color: #c2c9d6; }
.field-group input:focus { border-color: #6b85dd; box-shadow: 0 0 0 3px rgba(49, 89, 215, 0.09); outline: 0; }
.field-group input[aria-invalid="true"] { border-color: #d06879; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 40px; height: 39px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #f3f5f8; }
.password-toggle span { position: relative; display: block; width: 17px; height: 11px; margin: auto; border: 1.6px solid #7a8499; border-radius: 50% 50% 45% 45%; }
.password-toggle span::after { content: ""; position: absolute; top: 3px; left: 6px; width: 3px; height: 3px; border-radius: 50%; background: #7a8499; }
.password-toggle[aria-pressed="true"] span::before { content: ""; position: absolute; z-index: 1; top: 4px; left: -2px; width: 21px; height: 1.5px; background: #7a8499; transform: rotate(-45deg); }

.field-error { min-height: 0; margin: 5px 0 0; color: var(--danger); font-size: 11px; }
.field-error:empty { display: none; }

.remember-row { display: flex; align-items: center; width: fit-content; margin: 2px 0 22px; color: #5d6679; font-size: 12px; cursor: pointer; }
.remember-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkbox-ui { position: relative; width: 17px; height: 17px; margin-right: 9px; border: 1px solid #cbd1dc; border-radius: 4px; background: white; }
.remember-row input:checked + .checkbox-ui { border-color: var(--brand); background: var(--brand); }
.remember-row input:checked + .checkbox-ui::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border-right: 2px solid white; border-bottom: 2px solid white; transform: rotate(45deg); }
.remember-row input:focus-visible + .checkbox-ui { outline: 3px solid rgba(49, 89, 215, 0.2); outline-offset: 2px; }

.signin-button { position: relative; border: 1px solid var(--brand); color: white; background: var(--brand); box-shadow: 0 7px 16px rgba(49, 89, 215, 0.18); }
.signin-button:hover { border-color: var(--brand-dark); background: var(--brand-dark); }
.signin-button:disabled { cursor: wait; opacity: 0.84; }
.button-spinner { display: none; width: 18px; height: 18px; margin: auto; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.signin-button.is-loading .button-label { display: none; }
.signin-button.is-loading .button-spinner { display: block; }

.service-message { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 13px; border: 1px solid #f2ccd2; border-radius: 9px; color: #8f3041; background: var(--danger-soft); }
.service-message[hidden] { display: none; }
.service-message > span { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border: 1px solid #d26c7c; border-radius: 50%; font-size: 11px; font-weight: 800; }
.service-message p { display: grid; margin: 0; }
.service-message strong { font-size: 12px; }
.service-message small { margin-top: 3px; color: #a44c5c; font-size: 11px; line-height: 1.45; }

.signup-copy { margin: 24px 0 0; color: #727b8e; text-align: center; font-size: 12px; }
.signup-copy .inline-button { margin-left: 3px; }

.page-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 17px; margin-top: auto; padding-top: 40px; color: #98a0af; font-size: 10px; }
.page-footer button { padding: 0; color: #7e879a; font-size: inherit; }
.page-footer button:hover { color: var(--brand); }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border: 1px solid #dce1ea;
  border-radius: 10px;
  color: #404b62;
  background: white;
  box-shadow: 0 14px 36px rgba(31, 43, 72, 0.18);
  font-size: 12px;
  transform: translateX(-50%);
  animation: toast-in 180ms ease-out;
}
.toast[hidden] { display: none; }
.toast-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: white; background: #6680d5; font-size: 11px; font-weight: 800; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 1120px) {
  .main-layout { grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr); }
  .product-panel { padding-left: 46px; padding-right: 46px; }
  .workspace-preview { width: 100%; }
  .feature-list li:nth-child(3) { display: none; }
}

@media (max-width: 880px) {
  body { background: white; }
  .topbar, .product-panel { display: none; }
  .main-layout { display: block; min-height: 100vh; padding-top: 0; }
  .signin-panel { min-height: 100vh; justify-content: flex-start; padding: max(48px, 8vh) 24px 22px; }
  .signin-card { width: min(100%, 440px); }
  .mobile-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: clamp(42px, 8vh, 68px); }
  .signin-heading { text-align: center; }
  .page-footer { margin-top: auto; }
}

@media (max-width: 480px) {
  .signin-panel { padding-left: 20px; padding-right: 20px; }
  .signin-heading h2 { font-size: 28px; }
  .sso-button, .signin-button { height: 50px; }
  .field-group input { height: 49px; font-size: 16px; }
  .password-toggle { height: 41px; }
  .text-button { display: none; }
}

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