/* PDFKOR login page. Requires styles/tokens.css and styles/landing.css. */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 1fr) 1.25fr; gap: 18px; padding: 18px; }
.auth-side { display: flex; flex-direction: column; padding: 4px 16px; }
.auth-side .logo { height: 46px; }
.auth-form { flex: 1; width: min(100%, 360px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.auth-form .duo { margin-bottom: 32px; }

.flash-messages:empty { display: none; }
.flash-messages { margin-bottom: 16px; }
.flash-message { padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.55; animation: flash-in 0.25s ease; }
.flash-success { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.flash-error { background: var(--accent-tint); color: var(--accent-ink); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Kakao login button: brand colors follow Kakao's design guide */
.kakao-btn { width: 100%; height: 48px; border-radius: 999px; background: #fee500; color: rgba(0, 0, 0, 0.85); font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.15s ease; }
.kakao-btn:hover { background: #fdd800; }
.kakao-btn:disabled { cursor: not-allowed; opacity: 0.8; }
.kakao-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.oauth-icon { width: 20px; height: 20px; }

.back-link { margin-top: 20px; align-self: center; font-size: 14px; color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }

.auth-foot { padding: 12px 0 8px; font-size: 13px; color: var(--ink-faint); display: flex; gap: 16px; flex-wrap: wrap; }
.auth-foot a:hover { color: var(--ink); }

.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.12); border-top-color: rgba(0, 0, 0, 0.7); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-stage { min-height: 0; }
.auth-stage::before { background-image: url("../assets/stage/auth.webp"); }
.auth-stage p { position: absolute; left: 32px; bottom: 28px; right: 32px; font-size: 22px; line-height: 1.4; letter-spacing: -0.015em; color: #fff; text-shadow: 0 1px 12px rgba(40, 28, 14, 0.35); }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; padding: 0; }
  .auth-side { padding: 0 16px; }
  .auth-side .logo { height: 64px; }
  .auth-stage { display: none; }
}
