/* 09-messages-auth.css — Toasts, the sign-in screens, code blocks.
   Part of the CRM stylesheet: the files load in number order (components/app_styles.html) and later
   rules win, exactly as when this was one file. */

/* ---------- Messages ---------- */
/* The strip itself never takes taps — only a visible toast does (tap to dismiss); a faded one is gone. */
.messages { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.message { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .25s ease, toast-out .3s ease 4s forwards; }
.message.error { background: var(--danger); }
.message.success svg { color: #4ade80; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-art { position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; background: radial-gradient(1100px 600px at -10% -10%, #3b5bdb 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #2563eb 0%, transparent 55%), #0b1224; }
.auth-art h1 { font-size: 34px; line-height: 1.15; max-width: 440px; }
.auth-art p { max-width: 420px; color: rgba(255, 255, 255, .75); font-size: 14px; }
.auth-art .brand { padding: 0; }
.auth-art .brand img { height: 28px; }
.auth-feats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 460px; }
.auth-feats div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.auth-feats b { display: block; font-size: 14px; margin-bottom: 2px; }
.auth-form { position: relative; display: grid; place-items: center; padding: 40px; background: var(--surface); }
.auth-lang { position: absolute; top: 20px; right: 24px; }
.auth-form > form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.auth-form .input { height: 42px; }

/* ---------- Code ---------- */
.code { display: block; padding: 10px 12px; border-radius: 9px; background: var(--surface-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
pre.code { white-space: pre-wrap; margin: 0; }

