/* The login is a native Vue/CSS surface. Layout variance 7, motion 4, density 3.
   Controls use 10px corners, photography uses 20px. Light/dark share one accent.
   Lucide is the project's existing icon family. No additional UI runtime needed. */
.access-page {
  --access-bg: #f3f5f2;
  --access-surface: #fafbf9;
  --access-text: #1b332c;
  --access-muted: #58675e;
  --access-line: #d6ded8;
  --access-accent: #28614c;
  --access-accent-hover: #1d4d3b;
  --access-tint: #e7eee8;
  --access-input: #f7f9f6;
  --access-error: #a83430;
  width: min(1320px, calc(100% - 112px));
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  color: var(--access-text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
body:has(.access-page) { background: #f3f5f2; }
body:has(.access-page) .ambient { display: none; }
.access-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.access-brand { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--access-muted); font-size: 12px; }
.access-brand img { width: 138px; height: 40px; object-fit: contain; }
.access-brand span { padding-left: 22px; border-left: 1px solid var(--access-line); }
.access-page svg { width: 18px; height: 18px; flex-shrink: 0; }
.access-page button { font: inherit; }
.access-link { display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--access-text); font-size: 12px !important; padding: 10px 0 10px 10px; border-radius: 10px; }
.access-link:hover { color: var(--access-accent); }
.access-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: center; gap: clamp(60px, 8vw, 128px); padding: 22px 0 38px; }
.access-story { align-self: center; min-width: 0; }
.access-story-copy { margin-bottom: 32px; }
.access-kicker { margin: 0 0 18px; color: var(--access-accent); font-size: 13px; font-weight: 600; }
.access-story h1 { margin: 0; font-size: clamp(34px, 3.5vw, 52px); font-weight: 600; line-height: 1.38; letter-spacing: -.045em; }
.access-description { margin: 20px 0 0; color: var(--access-muted); font-size: 14px; line-height: 1.9; }
.access-photo { margin: 0; border-radius: 20px; overflow: hidden; height: clamp(230px, 25vw, 334px); background: var(--access-tint); }
.access-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; filter: saturate(.6); }
.access-scope { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 22px; }
.access-scope span { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--access-muted); }
.access-scope svg { color: var(--access-accent); width: 16px; height: 16px; }
.access-form-panel { width: 100%; max-width: 410px; justify-self: end; border-radius: 20px; padding: 42px 34px 32px; border: 1px solid var(--access-line); background: var(--access-surface); box-shadow: 0 18px 50px rgba(37, 68, 50, .045); }
.access-emblem { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--access-line); border-radius: 14px; background: var(--access-tint); color: var(--access-accent); margin-bottom: 26px; }
.access-emblem svg { width: 24px; height: 24px; }
.access-role { margin: 0 0 12px; color: var(--access-accent); font-size: 12px; font-weight: 600; }
.access-form-heading h2 { margin: 0 0 12px; color: var(--access-text); font-size: 30px; line-height: 1.3; font-weight: 600; letter-spacing: -.03em; }
.access-form-heading > p:last-child { color: var(--access-muted); font-size: 12px; line-height: 1.8; margin: 0 0 30px; }
.access-form { display: flex; flex-direction: column; gap: 10px; }
.access-form > label { display: block; margin: 10px 0 0; font-size: 12px; font-weight: 600; color: var(--access-text); }
.access-form > label:first-child { margin-top: 0; }
.access-input { display: flex; align-items: center; border: 1px solid var(--access-line); border-radius: 10px; background: var(--access-input); padding-left: 14px; color: var(--access-muted); }
.access-page .access-form input { color: var(--access-text); background: var(--access-input); min-height: 50px; box-shadow: none; font-size: 13px; width: 100%; margin: 0; border: 1px solid var(--access-line); border-radius: 10px; padding: 12px 14px; }
.access-page .access-input input { border: 0; background: transparent; padding-left: 12px; min-width: 0; }
.access-page input::placeholder { color: var(--access-muted); opacity: 1; }
.access-input:focus-within, .access-page .access-form > input:focus { border-color: var(--access-accent); box-shadow: 0 0 0 3px var(--access-tint); }
.access-page .access-input input:focus-visible { box-shadow: none; }
.access-password-toggle { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; min-width: 46px; color: var(--access-muted); background: transparent; border: 0; border-radius: 10px; }
.access-password-toggle:hover { color: var(--access-accent); background: var(--access-tint); }
.access-form-note { display: flex; align-items: center; gap: 7px; margin: 6px 0 10px; color: var(--access-muted); font-size: 10px; line-height: 1.7; }
.access-form-note svg { width: 14px; height: 14px; }
.access-submit { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; width: 100%; border: 1px solid var(--access-accent); border-radius: 10px; color: #f6faf7; background: var(--access-accent); font-weight: 600 !important; font-size: 13px !important; transition: transform .2s, background .2s; white-space: nowrap; }
.access-submit:hover { background: var(--access-accent-hover); }
.access-submit:active { transform: scale(.985); }
.access-page button:focus-visible, .access-page a:focus-visible { outline: 2px solid var(--access-accent); outline-offset: 4px; box-shadow: none; }
.access-help { margin: 24px 0 0; text-align: center; color: var(--access-muted); font-size: 10px; line-height: 1.8; }
.access-feedback { margin: 0 0 8px; border-left: 2px solid var(--access-accent); padding: 8px 10px; background: var(--access-tint); color: var(--access-text); font-size: 12px; line-height: 1.6; }
.access-feedback.error { border-color: var(--access-error); color: var(--access-error); }
.access-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--access-line); margin: -10px 0 24px; }
.access-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--access-muted); padding: 10px 0; font-size: 12px; }
.access-tabs button[aria-pressed="true"] { color: var(--access-accent); border-bottom-color: var(--access-accent); }
.access-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; border-top: 1px solid var(--access-line); color: var(--access-muted); font-size: 10px; }
.access-footer span:last-child { display: flex; align-items: center; gap: 7px; }
.access-footer svg { width: 12px; height: 12px; }

.generation-length-field { padding: 16px; background: var(--ui-surface, #f7f9f8); border: 1px solid var(--ui-border, #d6ded8); border-radius: 10px; }
.length-input-wrap { display: flex; align-items: center; gap: 12px; }
.length-input-wrap input { max-width: 220px; }
.length-input-wrap > span { font-size: 13px; color: var(--ui-muted, #58675e); }
.length-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.length-presets button { padding: 6px 12px; border: 1px solid var(--ui-border, #d6ded8); border-radius: 6px; background: transparent; color: var(--ui-ink, #1b332c); font-size: 12px; }
.length-presets button[aria-pressed="true"] { border-color: var(--ui-accent, #28614c); color: var(--ui-accent-strong, #28614c); background: var(--ui-accent-soft, #e7eee8); }
.length-hint { margin: 10px 0 0; color: var(--ui-muted, #58675e); font-size: 12px; line-height: 1.8; }
.document-length { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 12px 0 18px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--ui-border, #d6ded8); font-size: 12px; color: var(--ui-muted, #58675e); }
.document-length strong { color: var(--ui-ink, #1b332c); font-size: 15px; }
.length-warning { color: #a15a20; }

@media (prefers-reduced-motion: no-preference) {
  .access-story-copy, .access-photo, .access-form-panel { animation: access-enter .65s both; }
  .access-photo { animation-delay: .08s; }
  .access-form-panel { animation-delay: .15s; }
  @keyframes access-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { .access-page *, .access-page *::before, .access-page *::after { animation: none !important; transition: none !important; } }
@media (prefers-color-scheme: dark) {
  body:has(.access-page) { background: #15231e; }
  .access-page { --access-bg: #15231e; --access-surface: #1a2c24; --access-text: #e4ede7; --access-muted: #b0bfb4; --access-line: #3a4e41; --access-accent: #a3d0b4; --access-accent-hover: #bdddc9; --access-tint: #2b4234; --access-input: #203228; --access-error: #ffa59a; }
  .access-brand img { background: #fafbf9; padding: 4px 8px; border-radius: 10px; }
  .access-page .access-submit { color: #182d21; background: var(--access-accent) !important; }
  .access-page .access-submit:hover { background: var(--access-accent-hover) !important; }
  .access-photo img { filter: brightness(.8) saturate(.55); }
  .length-warning { color: #f3c68f; }
}
@media (max-width: 1100px) {
  .access-page { width: calc(100% - 64px); }
  .access-layout { gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); }
  .access-form-panel { padding: 32px 26px; }
  .access-story h1 { font-size: 36px; }
}
@media (max-width: 767px) {
  .access-page { width: calc(100% - 40px); }
  .access-header { min-height: 80px; gap: 16px; }
  .access-brand img { width: 116px; height: 36px; }
  .access-brand span { display: none; }
  .access-link { font-size: 11px !important; gap: 5px; }
  .access-layout { grid-template-columns: 1fr; gap: 36px; padding: 12px 0 30px; }
  .access-form-panel { order: -1; max-width: 460px; justify-self: center; padding: 30px 24px; }
  .access-form-heading h2 { font-size: 28px; }
  .access-emblem { margin-bottom: 22px; }
  .access-story { width: 100%; max-width: 460px; justify-self: center; }
  .access-story-copy { margin-bottom: 22px; }
  .access-story h1 { font-size: 32px; }
  .access-photo { height: 230px; }
  .access-scope { gap: 16px; }
  .access-footer { font-size: 9px; min-height: 70px; }
}
@media (min-width: 768px) and (max-height: 800px) {
  .access-header { min-height: 80px; }
  .access-layout { padding: 16px 0 28px; }
  .access-story-copy { margin-bottom: 24px; }
  .access-photo { height: 245px; }
  .access-form-panel { padding-top: 30px; padding-bottom: 26px; }
  .access-footer { min-height: 54px; }
}
