/* Inloggningssidor i swerpy.se-profil. Rörelse: kortet stiger fram en gång. */
:root {
  --a-bg: #07060b;
  --a-card: rgba(19,14,34,.78);
  --a-border: rgba(255,255,255,.12);
  --a-text: #ede7fa;
  --a-muted: #b8aed2;
  --a-violet: #7e44e7;
  --a-violet-2: #a98bff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--a-bg);
  color: var(--a-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  position: relative;
}
/* Ljuset och rutnätet från hemsidans hero — stilla */
.auth-glow {
  position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
}
.auth-glow.a { width: 520px; height: 520px; left: -140px; top: -160px; background: rgba(126,68,231,.45); }
.auth-glow.b { width: 420px; height: 420px; right: -120px; bottom: -140px; background: rgba(157,107,255,.22); }
.auth-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 2.4rem 2.2rem 2rem;
  background: var(--a-card);
  border: 1px solid var(--a-border);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(169,139,255,.08), 0 0 60px rgba(126,68,231,.18);
  animation: auth-rise .7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes auth-rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1.6rem; }
.login-brand-icon {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 22px rgba(126,68,231,.55);
}
.login-brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.login-brand-name { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.login-tag {
  margin-left: auto;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #8fe3c0; background: rgba(60,200,150,.12); border: 1px solid rgba(143,227,192,.3);
  padding: 3px 8px; border-radius: 999px;
}
.login-card h1 {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .3rem;
  background: linear-gradient(90deg, #ffffff, #d9ccff 60%, #b99bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-card .subtitle { color: var(--a-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.login-card label, .login-card .form-label { font-weight: 500; font-size: .82rem; color: var(--a-muted); margin-bottom: .35rem; }
.login-card .form-control {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  border-radius: 11px;
  padding: .65rem .9rem;
  font-size: .92rem;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.login-card .form-control::placeholder { color: rgba(228,220,245,.35); }
.login-card .form-control:focus {
  background: rgba(255,255,255,.07);
  border-color: rgba(169,139,255,.85);
  box-shadow: 0 0 0 3px rgba(169,139,255,.25);
  color: #fff;
  outline: none;
}
.login-card .form-control:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 40px #1a1428 inset;
  caret-color: #fff;
}
.btn-login {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: .7rem;
  font-weight: 600;
  font-size: .92rem;
  color: #fff;
  background: linear-gradient(180deg, #8a52f0, #7e44e7);
  box-shadow: 0 0 22px rgba(126,68,231,.45), inset 0 1px 0 rgba(255,255,255,.18);
  transition: box-shadow .2s, transform .2s;
}
.btn-login:hover, .btn-login:focus-visible {
  color: #fff;
  box-shadow: 0 0 34px rgba(126,68,231,.7), inset 0 1px 0 rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.alert-danger {
  border-radius: 11px; font-size: .86rem;
  background: rgba(240,80,70,.14); color: #ffc2bd;
  border: 1px solid rgba(255,155,147,.28);
}
.forgot-link { color: #c9b3ff; font-size: .86rem; text-decoration: none; }
.forgot-link:hover { color: #fff; text-decoration: underline; }
.footer-note { text-align: center; margin: 1.4rem 0 0; font-size: .8rem; color: rgba(184,174,210,.7); }
@media (prefers-reduced-motion: reduce) { .login-card { animation: none; } .btn-login { transition: none; } }
