@font-face {
  font-family: "Lilita One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/redteam/auth/welcome-font.ttf") format("truetype");
}
:root {
  color-scheme: light;
  font-family: ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #35264b;
  background: #f7f1ff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(ellipse at 7% 16%, #ffd8e8 0, transparent 38%),
    radial-gradient(ellipse at 94% 85%, #ccefe8 0, transparent 38%),
    radial-gradient(ellipse at 90% 6%, #e5dcff 0, transparent 35%),
    #f7f1ff;
}
.auth-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 480px;
  padding: 34px 36px 28px;
  border: 2px solid #594176;
  border-radius: 30px;
  background: #fffdfa;
  box-shadow: 0 10px 0 #dfd2f3, 0 25px 65px #43256317;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  color: #6b507e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .035em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: #7450ad;
  border-radius: 9px;
  font-size: 12px;
  transform: rotate(-7deg);
}
.welcome {
  position: relative;
  margin: 27px -12px 27px;
  font-family: "Lilita One", "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: clamp(39px, 7vw, 53px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-shadow: 0 3px 0 #f0e3f8;
}
.welcome-word { display: inline-block; white-space: nowrap; }
.welcome-word span { display: inline-block; }
.welcome-word span:nth-child(5n + 1) { color: #8050b3; transform: rotate(-6deg); }
.welcome-word span:nth-child(5n + 2) { color: #cf3e79; transform: translateY(2px) rotate(4deg); }
.welcome-word span:nth-child(5n + 3) { color: #bd641c; transform: rotate(-3deg); }
.welcome-word span:nth-child(5n + 4) { color: #147d79; transform: translateY(2px) rotate(5deg); }
.welcome-word span:nth-child(5n + 5) { color: #4269bd; transform: rotate(-4deg); }
.sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 39px;
  line-height: 1;
}
.sparkle-one { top: -21px; right: 26px; color: #db9d20; transform: rotate(12deg); }
.sparkle-two { top: 81px; left: -18px; color: #cc4e8a; font-size: 36px; transform: rotate(-12deg); }
h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.025em; }
.intro { margin: 0 0 23px; color: #6d6179; font-size: 14px; line-height: 1.65; }
form { display: flex; flex-direction: column; gap: 9px; }
label { margin-top: 7px; font-size: 13px; font-weight: 750; }
input {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #c8b8d8;
  border-radius: 12px;
  color: #35264b;
  background: #fff;
  font: inherit;
  font-size: 16px;
  box-shadow: 0 2px 0 #eee6f4;
}
input:hover { border-color: #9c81b9; }
input:focus-visible, button:focus-visible { outline: 3px solid #2c8581; outline-offset: 3px; }
small { color: #70627e; font-size: 12px; line-height: 1.65; }
button {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #67418c;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(105deg, #8050b3, #a83d7e);
  box-shadow: 0 4px 0 #573370;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #573370; }
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #573370; }
.foot { margin: 25px 0 0; color: #786986; font-size: 11px; text-align: center; }
.error { padding: 12px 14px; border: 1px solid #cb738e; border-radius: 11px; color: #8b2449; background: #fff0f5; font-size: 13px; line-height: 1.6; }
@media (max-width: 460px) {
  body { padding: 36px 20px; }
  .auth-card { padding: 29px 22px 24px; border-radius: 25px; }
  .welcome { margin-top: 25px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
