:root {
  --login-bg: #050505;
  --card-bg: rgba(12, 10, 13, 0.72);
  --card-border: rgba(255, 76, 44, 0.34);
  --text-main: #ffffff;
  --text-muted: rgba(255, 230, 215, 0.72);
  --red: #ff2e2e;
  --red-soft: rgba(255, 46, 46, 0.2);
  --orange: #ff7a00;
  --yellow: #ffd21f;
  --green: #27ff77;
  --shadow-red: rgba(255, 36, 24, 0.42);
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 52% 48%, rgba(70, 0, 0, 0.32), transparent 33%),
    radial-gradient(circle at 15% 18%, rgba(255, 63, 32, 0.16), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(255, 122, 0, 0.12), transparent 32%),
    #050505;
}

.login-screen {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  color: var(--text-main);
  isolation: isolate;
}

.login-screen::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 40, 20, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 40, 20, 0.035) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 0 24%, rgba(0, 0, 0, 0.45) 76%, rgba(0, 0, 0, 0.86) 100%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  pointer-events: none;
}

.login-card {
  position: relative;
  width: min(470px, 100%);
  padding: 36px 34px 30px;
  text-align: center;
  border: 1px solid var(--card-border);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(22, 10, 10, 0.82), rgba(5, 5, 8, 0.7)),
    var(--card-bg);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.72),
    0 0 60px rgba(255, 50, 30, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 0 42px rgba(255, 56, 35, 0.06);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.login-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, transparent, rgba(255, 110, 0, 0.12), transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(255, 55, 28, 0.16), transparent 45%);
  pointer-events: none;
}

.login-card::after {
  position: absolute;
  inset: -2px;
  z-index: -1;
  content: "";
  border-radius: 34px;
  background: conic-gradient(from 0deg, rgba(255, 0, 0, 0.2), rgba(255, 122, 0, 0.45), rgba(255, 0, 0, 0.18), rgba(255, 122, 0, 0.45), rgba(255, 0, 0, 0.2));
  filter: blur(16px);
  opacity: 0.55;
  animation: cardAura 7s linear infinite;
}

.login-logo-wrap {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 54, 28, 0.26), rgba(255, 140, 0, 0.08));
  box-shadow: 0 0 34px rgba(255, 49, 31, 0.38), inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.login-logo-wrap::before {
  position: absolute;
  inset: -7px;
  content: "";
  border-radius: 30px;
  border: 1px solid rgba(255, 92, 32, 0.35);
  box-shadow: 0 0 30px rgba(255, 64, 28, 0.28);
  animation: logoPulse 2.2s ease-in-out infinite;
}

.login-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 7px 18px rgba(255, 35, 22, 0.45));
}

.brand-title {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 4px auto 8px;
  font-size: clamp(38px, 8vw, 58px);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: none;
  transform: perspective(500px) rotateX(5deg);
  text-shadow: 0 4px 0 #160000, 0 12px 26px rgba(0, 0, 0, 0.65);
}

.brand-title span {
  display: inline-block;
  transform: translateZ(0);
}

.brand-stream {
  color: var(--green);
  text-shadow: 0 2px 0 #064719, 0 0 14px rgba(39, 255, 119, 0.65), 0 10px 22px rgba(0, 0, 0, 0.65);
}

.brand-tok {
  color: var(--yellow);
  text-shadow: 0 2px 0 #6b4e00, 0 0 16px rgba(255, 210, 31, 0.62), 0 10px 22px rgba(0, 0, 0, 0.65);
}

.brand-live {
  color: var(--red);
  text-shadow: 0 2px 0 #650000, 0 0 17px rgba(255, 46, 46, 0.72), 0 10px 22px rgba(0, 0, 0, 0.65);
}

.eyebrow {
  position: relative;
  margin-bottom: 12px;
  color: #ff9b42;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.subtitle {
  position: relative;
  max-width: 340px;
  margin: 0 auto 26px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.login-form {
  position: relative;
  display: grid;
  gap: 11px;
  margin-top: 8px;
}

.field-label {
  margin: 2px 0 -2px;
  text-align: left;
  color: #ffe2d2;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1px solid rgba(255, 94, 35, 0.33);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.44);
  box-shadow: inset 0 0 18px rgba(255, 52, 31, 0.05), 0 0 0 rgba(255, 68, 30, 0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field-shell:focus-within {
  border-color: rgba(255, 122, 0, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 78, 33, 0.12), 0 0 28px rgba(255, 50, 20, 0.18);
  transform: translateY(-1px);
}

.field-icon {
  width: 50px;
  color: #ff7a00;
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(255, 96, 22, 0.55));
}

.field-shell input {
  flex: 1;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 16px;
  font-weight: 850;
}

.field-shell input::placeholder {
  color: rgba(255, 216, 190, 0.38);
}

.password-shell input {
  padding-right: 52px;
}

.password-eye {
  position: absolute;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 122, 0, 0.26);
  border-radius: 14px;
  color: #ffd1b5;
  background: rgba(255, 76, 24, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.password-eye:hover,
.password-eye.is-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 0, 0.76);
  background: rgba(255, 122, 0, 0.14);
  box-shadow: 0 0 18px rgba(255, 94, 25, 0.18);
}

.password-eye svg {
  overflow: visible;
}

.eye-line,
.eye-dot {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-dot {
  fill: currentColor;
  stroke: none;
}

.login-button {
  position: relative;
  width: 100%;
  min-height: 66px;
  margin-top: 8px;
  cursor: pointer;
  overflow: hidden;
  border: 0;
  border-radius: 21px;
  color: #190400;
  background: linear-gradient(135deg, #fff2df, #ff8a1d 34%, #ff2c21 72%, #7e0303);
  box-shadow: 0 18px 48px rgba(255, 45, 24, 0.28), 0 10px 30px rgba(255, 122, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-button:hover {
  transform: translateY(-3px) scale(1.012);
  filter: saturate(1.2) brightness(1.08);
  box-shadow: 0 26px 70px rgba(255, 45, 24, 0.38), 0 15px 40px rgba(255, 122, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.login-button:active {
  transform: translateY(1px) scale(0.99);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-glow {
  position: absolute;
  inset: -80% auto auto -36%;
  width: 34%;
  height: 270%;
  transform: rotate(25deg);
  background: rgba(255, 255, 255, 0.62);
  animation: shine 2.5s infinite;
}

.button-text {
  position: relative;
  z-index: 1;
}

.login-actions {
  position: relative;
  display: grid;
  margin-top: 14px;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(255, 180, 77, 0.32);
  border-radius: 17px;
  color: #ffe6c8;
  background: rgba(255, 122, 0, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 100, 25, 0.04);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.support-button::before {
  content: "💬";
  margin-right: 8px;
}

.support-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.72);
  background: rgba(255, 122, 0, 0.14);
  box-shadow: 0 0 26px rgba(255, 91, 24, 0.16);
}

.hint {
  position: relative;
  min-height: 20px;
  margin-top: 18px;
  color: rgba(255, 224, 205, 0.58);
  font-size: 14px;
  font-weight: 750;
}

.hint.is-error {
  color: #ff6b66;
  font-weight: 1000;
  text-shadow: 0 0 14px rgba(255, 52, 42, 0.34);
}

.hint.is-success {
  color: #46ff91;
  font-weight: 1000;
  text-shadow: 0 0 14px rgba(70, 255, 145, 0.34);
}

.login-card.is-entering {
  animation: enterPulse 520ms ease forwards;
}

@keyframes shine {
  0% { left: -45%; }
  45%, 100% { left: 135%; }
}

@keyframes cardAura {
  to { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes enterPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@media (max-width: 520px) {
  .login-screen { padding: 16px; }
  .login-card { padding: 30px 20px 24px; border-radius: 26px; }
  .brand-title { font-size: 40px; }
  .subtitle { font-size: 14px; }
}
