/* ============================================================
   Sign-in — light, Apple-inspired
   Canvas #f5f5f7 · text #1d1d1f · secondary #6e6e73
   Accent #0071e3 · hairline rgba(0,0,0,.06)
   ============================================================ */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #f5f5f7;
  color: #1d1d1f;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-story {
  padding: 44px clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.auth-brand {
  align-self: flex-start;
  display: inline-block;
  padding: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
}
.auth-logo {
  width: 168px;
  height: auto;
  object-fit: contain;
}
.auth-story-copy {
  padding: 72px 0;
  max-width: 480px;
}
.auth-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 1.5;
  color: #6e6e73;
  margin-bottom: 18px;
}
.auth-story .auth-eyebrow {
  color: #0071e3;
  padding-left: 14px;
  border-left: 2px solid #0071e3;
}
.auth-story h1 {
  font:
    700 clamp(34px, 3.4vw, 52px) / 1.08 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    system-ui,
    sans-serif;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
  color: #1d1d1f;
}
.auth-story-copy > p {
  font-size: 17px;
  line-height: 1.65;
  max-width: 360px;
  color: #6e6e73;
  margin: 0;
}
.auth-story-note {
  font-size: 12px;
  line-height: 1.8;
  color: #6e6e73;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  gap: 28px;
  min-width: 0;
}
.auth-form {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 16px 48px rgba(0, 0, 0, 0.08);
}
.auth-form-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.auth-form h2 {
  font:
    700 28px/1.25 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin: 0 0 10px;
}
.auth-form h2 span {
  display: block;
  color: #0071e3;
}
.auth-subtitle {
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.auth-form .field {
  margin-bottom: 20px;
}
.auth-form label {
  display: block;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}
.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 16px;
  font-family: inherit;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.auth-form input::placeholder {
  color: #86868b;
  opacity: 1;
}
.auth-form input:focus {
  border-color: #0071e3;
  outline: 4px solid rgba(0, 113, 227, 0.16);
  outline-offset: 0;
}
.password-control {
  position: relative;
}
.password-control input {
  padding-right: 72px;
}
.password-control button {
  position: absolute;
  right: 6px;
  top: 3px;
  min-width: 56px;
  height: 42px;
  padding: 0 10px;
  background: transparent;
  color: #0071e3;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.password-control button:hover {
  background: rgba(0, 113, 227, 0.08);
}
.auth-form .auth-submit {
  width: 100%;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #0071e3;
  border: none;
  border-radius: 980px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  margin-top: 8px;
  box-shadow: none;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.auth-form .auth-submit:hover {
  background: #0077ed;
}
.auth-form .auth-submit:active {
  transform: scale(0.98);
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-help {
  text-align: center;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.8;
  margin: 24px 0 0;
}
.auth-footer {
  max-width: 420px;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: #86868b;
}
.auth-error {
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}
/* Keep the sign-in light even if the workspace dark theme was active. */
body.dark .auth-layout,
body.dark .auth-story,
body.dark .auth-panel {
  background: #f5f5f7;
  color: #1d1d1f;
}
body.dark .auth-story {
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  border-right-color: rgba(0, 0, 0, 0.06);
}
body.dark .auth-brand {
  background: transparent;
}
body.dark .auth-eyebrow,
body.dark .auth-subtitle,
body.dark .auth-help,
body.dark .auth-story-note,
body.dark .auth-story-copy > p {
  color: #6e6e73;
}
body.dark .auth-story .auth-eyebrow {
  color: #0071e3;
}
body.dark .auth-story h1,
body.dark .auth-form h2 {
  color: #1d1d1f;
}
body.dark .auth-form h2 span {
  color: #0071e3;
}
body.dark .auth-form {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}
body.dark .auth-form label {
  color: #1d1d1f;
}
body.dark .auth-form input,
body.dark .password-control input {
  background: #ffffff;
  border-color: #d2d2d7;
  color: #1d1d1f;
}
body.dark .auth-form input::placeholder {
  color: #86868b;
}
body.dark .auth-form input:focus {
  border-color: #0071e3;
  outline: 4px solid rgba(0, 113, 227, 0.16);
}
body.dark .password-control button {
  background: transparent;
  color: #0071e3;
}
body.dark .password-control button:hover {
  background: rgba(0, 113, 227, 0.08);
}
body.dark .auth-form .auth-submit {
  background: #0071e3;
  border: none;
  color: #ffffff;
}
body.dark .auth-form .auth-submit:hover {
  background: #0077ed;
}
@media (max-width: 1000px) {
  .auth-story {
    padding: 36px 30px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
  .auth-panel {
    padding: 40px 24px;
  }
  .auth-form {
    padding: 30px 26px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
}
@media (max-width: 700px) {
  .auth-layout {
    display: flex;
    flex-direction: column;
  }
  .auth-story {
    padding: 24px;
    border-right: 0;
  }
  .auth-brand {
    padding: 8px 12px;
  }
  .auth-logo {
    width: 132px;
  }
  .auth-story-copy {
    padding: 24px 0 0;
  }
  .auth-story-copy .auth-eyebrow,
  .auth-story-note {
    display: none;
  }
  .auth-story h1 {
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: -0.6px;
    margin: 0;
  }
  .auth-story h1 br {
    display: none;
  }
  .auth-story-copy > p {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 10px;
    max-width: none;
  }
  .auth-panel {
    flex: 1;
    padding: 28px 20px;
    gap: 22px;
  }
  .auth-form {
    padding: 28px 24px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .auth-footer {
    max-width: 300px;
  }
}
