/* «Вход» and invite pages (docs/design/full-product/project/Auth.dc.html). Bare layout, no app shell. */

.au { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 648fr) minmax(0, 792fr); background: var(--sky-1); }

/* Brand panel: sky-0, the moon rising out of the lower-left corner */
.au-brand { position: relative; overflow: hidden; background: var(--sky-0); padding: 56px; }
.au-brand-moon { position: absolute; left: -82px; bottom: -150px; display: block; width: 688px; height: 688px; pointer-events: none; }
.au-brand-word { position: relative; display: block; font-size: 28px; line-height: 1; color: var(--bone); }
.au-brand-title { position: relative; margin-top: 72px; font-size: 48px; line-height: 52px; max-width: 520px; }
.au-brand-lead { position: relative; margin-top: 24px; max-width: 460px; text-wrap: pretty; }

/* Form panel: one 480px column */
.au-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 56px 24px 48px; }
.au-form-panel > * { width: 100%; max-width: 480px; margin-inline: auto; }
.au-phone-word { display: none; }
.au-stack { display: flex; flex-direction: column; gap: 24px; animation: au-rise var(--dur-2) var(--ease-out) backwards; }
.au-lead { margin-top: 8px; }
.au-fields { display: flex; flex-direction: column; gap: 16px; }
.au-actions { display: flex; flex-direction: column; gap: 16px; }
.au-actions-tight { gap: 12px; }
.au-wide { width: 100%; }
.au-pass { position: relative; }
.au-pass .input { padding-right: 52px; }
.au-eye { position: absolute; top: 4px; right: 4px; }
.au-eye[aria-pressed="true"] { background: var(--sky-3); color: var(--bone); }
.au-remember { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; align-self: flex-start; }
.au-remember input { width: 22px; height: 22px; margin: 0; accent-color: var(--moon); cursor: pointer; }

/* Calm notes: cloud blue, never red */
.au-note { box-shadow: inset 0 0 0 1px var(--cloud); }
.input.au-note:focus { box-shadow: inset 0 0 0 2px var(--moon); }
.au-err { padding: 12px 14px; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.au-err-icon { display: flex; color: var(--cloud); margin-top: 4px; }
.au-err p { font: 500 14px/20px var(--f-ui); color: var(--cloud); }
.au-bye { padding: 12px 14px; font: 500 14px/20px var(--f-ui); color: var(--ink-2); }

.au a:not(.btn) { color: var(--moon); text-underline-offset: 3px; }

/* Invite: closed states draw only the moon's outline */
.au-ring { display: block; }

@keyframes au-rise { from { opacity: 0; transform: translateY(8px); } }
@media (hover: hover) and (pointer: fine) { .au-remember:hover span { color: var(--bone); } .au a:not(.btn):hover { color: var(--moon-hover); } }
@media (prefers-reduced-motion: reduce) { .au-stack { animation: none; } }

/* Phone: the brand panel folds into the wordmark */
@media (max-width: 767px) {
  .au { grid-template-columns: minmax(0, 1fr); background: var(--sky-0); }
  .au-brand { display: none; }
  .au-form-panel { justify-content: flex-start; padding: 24px 16px 32px; gap: 32px; }
  .au-phone-word { display: block; font-size: 22px; line-height: 1; color: var(--bone); }
  .au .input { font-size: 16px; } /* no zoom on focus in iOS Safari */
}
