/* PT Accounts sign-in pages: one card on the paper background, granules drifting behind. */
body.auth { min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 16px; position: relative; overflow: hidden; }
.auth-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; }
.auth-brand img { width: 32px; height: 32px; }
.auth-card { position: relative; z-index: 1; width: min(420px, 100%); background: var(--surface); border-radius: 28px; padding: 32px 28px; box-shadow: 0 30px 60px -30px rgba(53, 57, 56, .25); }
.auth-card.is-in { animation: cardIn .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.auth-card h1 { margin: 0 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.auth-sub { margin: 0 0 20px; color: var(--ink-2); }
.auth-card .form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .field input { min-height: 48px; border-radius: 14px; font-size: 16px; }
.auth-go { width: 100%; margin-top: 6px; height: 50px; font-size: 16px; }
.auth-go.is-busy { opacity: .7; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 14px; }
.auth-links a:not(.btn) { color: var(--accent-text); text-decoration: none; }
.auth-links a:not(.btn):hover { text-decoration: underline; }
.auth-links .btn { width: 100%; justify-content: center; }
.auth-resend { margin-top: 12px; }
.auth-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green); margin-bottom: 16px; box-shadow: inset -6px -8px 12px rgba(0, 0, 0, .18), inset 4px 4px 8px rgba(255, 255, 255, .45); animation: markIn .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes markIn { from { transform: scale(.2); } }
.form.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .auth-card.is-in, .auth-mark, .form.shake { animation: none; } }

/* desktop: the form on the left, a photo from the godown floor on the right */
body.auth { display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-photo { display: none; }
@media (min-width: 960px) {
  body.auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-photo { display: block; position: relative; margin: 16px 16px 16px 0; border-radius: 28px; overflow: hidden; background: #dfe6f2; }
  .auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .auth-note { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 360px; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 20px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; }
  .auth-note b { font-weight: 500; font-size: 15px; }
  .auth-note span { color: var(--ink-2); }
  .auth-card { box-shadow: none; border: 1px solid var(--line); }
}

/* The note sits on a photo with a light glass background in both themes, so its text stays dark */
.auth-note { color: #2c302f; }
.auth-note b { color: #2c302f; }
.auth-note span { color: #5c615f; }
