@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
  --primary-fire: #ff5e00;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glossy-black: #0a0a0a;
  --text-primary: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.6);
  --login-bg: url("background.png");
  --login-bg-pos: 50% 50%;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Sora", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--login-bg) no-repeat fixed;
  background-position: var(--login-bg-pos);
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 153, 255, 0.35), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 94, 0, 0.2), transparent 60%),
    linear-gradient(120deg, rgba(2, 6, 23, 0.85), rgba(15, 23, 42, 0.65));
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.frame {
  position: relative;
  z-index: 2;
  width: min(420px, 90vw);
}

.login-card,
.denied-card {
  width: 100%;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

.login-card::before,
.denied-card::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 220px;
  background: linear-gradient(120deg, rgba(255, 94, 0, 0.35), rgba(255, 255, 255, 0));
  opacity: 0.45;
  z-index: 0;
}

.logo-area {
  position: relative;
  z-index: 1;
}

.logo-area h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  letter-spacing: 4px;
  margin: 0 0 6px;
  text-transform: uppercase;
  font-weight: 400;
}

.logo-area .logo-led {
  color: #00f2ff;
  font-weight: 700;
}

.logo-area .logo-souz {
  color: var(--primary-fire);
  font-weight: 700;
}

.mobile-benefit {
  display: none;
  margin: 16px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-primary);
}

.mobile-benefit .logo-souz {
  color: var(--primary-fire);
  font-weight: 700;
}

.subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.tg-widget {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.tg-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--glossy-black);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tg-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 94, 0, 0.3);
  border-color: var(--primary-fire);
}

.tg-button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.error {
  margin-top: 14px;
  color: #fca5a5;
  font-size: 0.9rem;
  min-height: 18px;
}

.footer-link {
  margin-top: 26px;
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hidden {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-fire);
  color: #0a0a0a;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  body,
  html {
    background-attachment: scroll;
  }

  .login-card,
  .denied-card {
    padding: 10px 16px 0;
  }

  .login-card,
  .denied-card {
    gap: 8px;
  }

  .frame {
    transform: translateY(150px);
  }

  .logo-area .logo-souz {
    display: none;
  }

  .logo-area .subtitle {
    display: none;
  }

  .tg-button {
    display: none;
  }

  .footer-link {
    display: none;
  }

  .mobile-benefit {
    display: block;
    margin-top: 8px;
  }
}
