/* Sign in / register page. */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 0.9fr) 1.1fr; }
.auth-art {
  position: relative; overflow: hidden; padding: 36px 44px; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(150deg, #312e81, #4f46e5 45%, #0891b2 80%, #16a34a);
}
.auth-art .brand { color: #fff; font-size: 17px; z-index: 1; }
.auth-art .brand b { color: #c7d2fe; }
.auth-art .brand:hover { text-decoration: none; }
.art-copy { margin: auto 0; z-index: 1; }
.art-copy h2 { font-size: 38px; letter-spacing: -.02em; margin: 0 0 10px; }
.art-copy p { opacity: .85; font-size: 16px; line-height: 1.6; }
.art-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.art-copy li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.art-copy .icon { color: #86efac; }
.orbits span { position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); animation: spin 30s linear infinite; }
.orbits span:nth-child(1) { width: 520px; height: 520px; right: -220px; bottom: -220px; }
.orbits span:nth-child(2) { width: 360px; height: 360px; right: -140px; bottom: -140px; animation-duration: 22s; animation-direction: reverse; }
.orbits span:nth-child(3) { width: 200px; height: 200px; right: -60px; bottom: -60px; background: rgb(255 255 255 / .06); }
.orbits span::after { content: ""; position: absolute; top: 12%; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-main { display: flex; flex-direction: column; align-items: center; padding: 22px 20px 30px; }
.auth-top { width: min(440px, 100%); display: flex; justify-content: space-between; align-items: center; }
.auth-card {
  width: min(440px, 100%); margin: auto 0; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgb(0 0 0 / .08); animation: rise .45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.auth-card h1 { font-size: 26px; margin: 18px 0 4px; letter-spacing: -.02em; }
.auth-card > p { margin: 0 0 18px; }
.tabs-auth { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.tabs-auth button { height: 36px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.tabs-auth button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.btn.block { width: 100%; justify-content: center; }
.btn.google { width: 100%; justify-content: center; height: 46px; gap: 10px; font-weight: 600; border-radius: 12px; color: var(--text); }
.btn.google svg { width: 20px; height: 20px; }
.btn.google.disabled { opacity: .5; pointer-events: none; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
form .f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
form .f input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
form .f input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
form .f input.bad { border-color: var(--danger); }
form .f input.good { border-color: var(--ok); }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; min-height: 0; }
.hint.err { color: var(--danger); } .hint.ok { color: var(--ok); }
.hint button { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-right: 44px !important; }
.pw-toggle { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle.on { color: var(--accent); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter i { height: 4px; border-radius: 4px; background: var(--border); transition: background .25s; }
.meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-score="3"] i:nth-child(-n+3) { background: #22c55e; }
.meter[data-score="4"] i { background: var(--ok); }
.row-between { display: flex; justify-content: space-between; margin: -4px 0 16px; font-size: 13px; }
.check-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; margin: 4px 0 18px; color: var(--muted); }
.check-terms input { margin-top: 3px; }
.check-terms.bad span { color: var(--danger); }
.banner { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin: 0 0 16px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.banner.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.banner.info { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.banner button { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.switch { text-align: center; margin: 18px 0 0; font-size: 14px; }
.legal { font-size: 12px; margin-top: 18px; }
.small { font-size: 12.5px; }
.sent { text-align: center; animation: rise .4s ease-out; }
.mail-anim { width: 72px; height: 72px; margin: 10px auto 6px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); animation: float 3s ease-in-out infinite; }
.mail-anim .icon { width: 34px; height: 34px; }
.google-pending { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.google-pending .avatar { width: 40px; height: 40px; }
.google-pending small { display: block; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } }
