/* ================= logowanie / rejestracja ================= */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* lewa strona: marka + animacja */
.auth-side {
  position: relative; overflow: hidden; padding: 40px 56px; display: flex; flex-direction: column;
  background: radial-gradient(700px 500px at 20% 10%, rgba(34, 197, 94, .14), transparent 60%),
              radial-gradient(500px 400px at 90% 90%, rgba(59, 130, 246, .10), transparent 60%), var(--bg-soft);
  border-right: 1px solid var(--line);
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 40% 40%, #000 20%, transparent 75%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 48px 48px; } }
.auth-side > * { position: relative; }
.auth-side-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 470px; }
.auth-side h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.auth-side p.lead { color: var(--text-2); font-size: 16px; margin-bottom: 34px; }
.perks { display: grid; gap: 18px; }
.perk { display: flex; gap: 14px; align-items: flex-start; opacity: 0; animation: slideIn .6s var(--ease) forwards; }
.perk:nth-child(1) { animation-delay: .15s; }
.perk:nth-child(2) { animation-delay: .3s; }
.perk:nth-child(3) { animation-delay: .45s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.perk .pi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--brand); flex-shrink: 0; }
.perk b { display: block; font-size: 15px; margin-bottom: 2px; }
.perk span { color: var(--text-2); font-size: 14px; }

/* pływające "karty serwerów" */
.server-chips { display: flex; gap: 10px; margin-top: 44px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(17, 21, 29, .85); border: 1px solid var(--line-2); font-size: 13px; animation: bob 7s ease-in-out infinite; }
.chip:nth-child(2) { animation-delay: -2.3s; }
.chip:nth-child(3) { animation-delay: -4.6s; }
.chip .led { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.chip .led.amber { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.chip small { color: var(--text-3); font-family: var(--font-mono); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.auth-side-foot { color: var(--text-3); font-size: 13px; }

/* prawa strona: formularz */
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 8px 12px 8px 8px; border-radius: 8px; transition: color .15s, background .15s; }
.back-link:hover { color: var(--text); background: var(--surface); }
.back-link .lucide, .back-link [data-lucide] { transition: transform .2s var(--ease); }
.back-link:hover .lucide, .back-link:hover [data-lucide] { transform: translateX(-3px); }
.auth-form-wrap { flex: 1; display: grid; place-items: center; padding: 30px 0; }
.auth-form { width: min(400px, 100%); animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-form h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-form .sub { color: var(--text-2); margin-bottom: 28px; }
.auth-form .sub a, .auth-switch a, .label-row a { color: var(--brand); font-weight: 600; }
.auth-form .sub a:hover, .auth-switch a:hover, .label-row a:hover { text-decoration: underline; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.label-row a { font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* siła hasła */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 4px; background: var(--surface-2); transition: background .25s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--red); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--amber); }
.strength[data-level="3"] i:nth-child(-n+3) { background: #a3e635; }
.strength[data-level="4"] i { background: var(--brand); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 22px 0; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--text-3); margin-top: 26px; }
.secure-note .lucide, .secure-note [data-lucide] { width: 14px; height: 14px; }

@media (max-width: 920px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 20px; }
}
