@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/shared/fonts/dm-sans-latin.woff2') format('woff2'); }
:root { --ink: #1c2119; --stone: #646b60; --paper: #f7f8f5; --sheet: #fff; --line: #e3e6df; --leaf: #2e7d32; --forest: #1b5e20; --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--forest); text-underline-offset: 3px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; }
.auth-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 32px 40px 20px; }
.auth-home { align-self: flex-start; text-decoration: none; padding: 4px 0 12px; }
.auth-logo { display: inline-block; font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.logo-crop { color: var(--ink); font-weight: 800; }
.logo-tia { color: #71776c; font-weight: 400; }
.logo-underline { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: #55a652; }
.auth-layout { width: 100%; max-width: 1000px; margin: auto; padding: 32px 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.auth-story { padding: 12px 0; }
.auth-story h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 700; }
.auth-story > p { color: var(--stone); max-width: 32ch; margin: 0; font-size: 17px; }
.auth-plan { display: block; width: 100%; height: auto; max-width: 370px; margin: 28px 0 16px; border-radius: 50%; }
.auth-story p.auth-story-note { font-size: 14px; max-width: 37ch; }
.auth-container { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 36px; min-width: 0; }
.auth-header { margin-bottom: 28px; }
.auth-header h1 { font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin: 0 0 10px; }
.auth-header p { color: var(--stone); margin: 0; font-size: 15px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; margin-bottom: 24px; }
.auth-tab { min-width: 0; flex: 1; min-height: 44px; padding: 8px 6px; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--stone); cursor: pointer; font-size: 14px; font-weight: 600; }
.auth-tab:hover { color: var(--forest); }
.auth-tab.active { background: var(--sheet); border-color: var(--line); color: var(--forest); }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--stone); }
.input-group input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #bcc4b6; border-radius: 10px; color: var(--ink); background: var(--sheet); font-size: 16px; }
.input-group input::placeholder { color: #798171; opacity: 1; }
.input-group input:focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
.input-group input[aria-invalid="true"] { border-color: #b43b15; }
.password-field { display: flex; position: relative; align-items: center; }
.password-field input { padding-right: 86px; }
.password-toggle { position: absolute; right: 2px; min-height: 44px; min-width: 72px; border: 0; border-radius: 6px; background: transparent; color: var(--forest); font-size: 13px; font-weight: 600; cursor: pointer; }
.password-toggle:hover { background: var(--paper); }
.input-hint { margin: -12px 0 -4px; color: var(--stone); font-size: 13px; line-height: 1.5; }
.btn-auth { min-height: 48px; padding: 12px 16px; border: 1px solid var(--leaf); border-radius: 10px; background: var(--leaf); color: white; font-weight: 600; cursor: pointer; }
.btn-auth:hover { background: var(--forest); border-color: var(--forest); }
.btn-auth:disabled { opacity: .6; cursor: wait; }
.auth-form-link { text-align: center; margin: -4px 0; font-size: 14px; }
.auth-form-link a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-legal { margin: -4px 0 0; font-size: 12px; color: var(--stone); line-height: 1.65; }
.auth-error, .auth-success { padding: 14px 16px; border: 1px solid #e9c9bf; border-radius: 10px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-error { background: #fff7f3; color: #a13112; }
.auth-success { background: #f0f6ec; border-color: #d7e5ce; color: var(--forest); }
.auth-success a { display: block; font-weight: 600; margin-top: 8px; padding: 10px 0 2px; }
.auth-back { border-top: 1px solid var(--line); margin: 24px 0 0; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; color: #b3bbad; font-size: 13px; }
.auth-back a { min-height: 44px; display: inline-flex; align-items: center; color: var(--stone); text-decoration: none; }
.auth-back a:hover { color: var(--forest); text-decoration: underline; }
.auth-footer { width: 100%; display: flex; justify-content: space-between; gap: 16px; color: var(--stone); font-size: 12px; align-items: center; }
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.auth-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--stone); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
@media (max-width: 900px) { .auth-layout { gap: 40px; } .auth-container { padding: 28px; } }
@media (max-width: 700px) {
  .auth-page { padding: 20px; }
  .auth-home { align-self: center; }
  .auth-layout { max-width: 440px; display: block; padding: 24px 0; }
  .auth-story { display: none; }
  .auth-container { padding: 28px 24px; }
  .auth-header h1 { font-size: 25px; }
  .auth-footer { flex-direction: column; gap: 0; text-align: center; }
}
@media (max-width: 380px) {
  .auth-page { padding: 16px; }
  .auth-container { padding: 24px 20px; }
  .auth-tabs { margin-left: -4px; margin-right: -4px; }
  .auth-tab { font-size: 13px; }
}
