/* =====================================================================
   Sign-in page (2026-10-18): animated gradient backdrop, split layout with a
   showcase panel, frosted-glass form card. CSS only (CSP: style-src 'self').
   ===================================================================== */
body.signed-out:has(.auth-wrap) {
  background:
    radial-gradient(1200px 700px at 10% 0%, color-mix(in srgb, var(--t1) 22%, transparent), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, color-mix(in srgb, var(--t6) 20%, transparent), transparent 60%),
    radial-gradient(700px 500px at 80% 10%, color-mix(in srgb, var(--t2) 16%, transparent), transparent 60%),
    var(--bg);
}
body.signed-out:has(.auth-wrap) .main { width: min(1040px, calc(100vw - 32px)); }
body.signed-out:has(.auth-wrap) .top { display: none; }
body.signed-out:has(.auth-wrap) .content { padding: var(--s5) 0; }

.auth-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-3);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); animation: auth-in .5s var(--ease) both; }
@keyframes auth-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

/* showcase panel */
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 40px; display: flex; flex-direction: column;
  justify-content: space-between; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #db2777 100%); isolation: isolate; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px); background-size: 22px 22px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; font-size: 18px; }
.auth-brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auth-kicker { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; opacity: .85; }
.auth-title { margin: 0 0 22px; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; max-width: 14ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.auth-points .d1 { background: #34d399; } .auth-points .d2 { background: #fbbf24; } .auth-points .d3 { background: #60a5fa; }

.auth-float { position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 12px; line-height: 1.3;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); animation: float 7s ease-in-out infinite; }
.auth-float span { display: block; opacity: .8; } .auth-float b { font-size: 16px; }
.auth-float.f1 { right: 36px; top: 96px; }
.auth-float.f2 { right: 90px; bottom: 120px; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; z-index: -1; animation: drift 16s ease-in-out infinite; }
.blob.b1 { width: 260px; height: 260px; background: #22d3ee; left: -60px; bottom: -80px; }
.blob.b2 { width: 220px; height: 220px; background: #f472b6; right: -50px; top: -60px; animation-delay: -5s; }
.blob.b3 { width: 180px; height: 180px; background: #a78bfa; left: 40%; top: 45%; animation-delay: -10s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(.95); } }

/* form card */
.auth-card.card { margin: 0; border: 0; border-radius: 0; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: none; }
.auth-card h2 { font-size: 26px; margin: 6px 0 4px; letter-spacing: -.02em; }
.auth-sub { margin: 0 0 var(--s4); }
.auth-card-brand { display: none; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .04em; color: var(--accent); }
.auth-card-brand .logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.auth-card .inp { height: 44px; }
.auth-card .btn[type=submit] { width: 100%; height: 46px; font-size: 15px; }
.auth-card .row { display: block; }
.auth-card .row .btn.ghost { width: 100%; margin-top: 8px; }
.auth-card .g-btn { height: 46px; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { display: none; }
  .auth-card.card { padding: 32px 22px; border-radius: 20px; }
  .auth-card-brand { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .blob, .auth-float, .auth-wrap { animation: none; } }

/* one-time sign-in link */
.link-alt { margin-top: var(--s3); border-top: 1px solid var(--border); padding-top: var(--s3); }
.link-alt .link-toggle { width: 100%; height: 46px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.link-alt .link-toggle .mail-ico { font-size: 17px; line-height: 1; }
.link-alt form { margin-top: var(--s3); }
.link-alt [data-link-msg].ok { color: var(--good); }
.auth-single { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; min-height: 0; }
.auth-single .auth-card-brand { display: flex; }
.auth-single .chk { display: flex; align-items: center; gap: 8px; margin: var(--s2) 0 var(--s3); font-size: 13.5px; }
