:root {
  color-scheme: dark;
  --background: #050a12;
  --surface: #09111d;
  --drawer: #07101b;
  --nav: #07101b;
  --primary: #13bff2;
  --secondary: #7257ff;
  --accent: #28d7a1;
  --error: #ff6475;
  --text-primary: #f2f7fb;
  --text-secondary: #8fa5ba;
  --divider: rgba(151, 178, 207, 0.16);
  --card: #091421;
  --card-dark: #07101b;
  --card-hover: #0d1a2a;
  --border-radius: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --transition: 180ms ease;
}

html,
body {
  min-height: 100%;
  background: #050a12;
}

body.tv-auth-page {
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -20%, rgba(19, 191, 242, 0.09), transparent 42rem),
    #050a12;
}

.tv-auth-page :where(button, input, select, textarea) {
  font: inherit;
}

.tv-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.tv-auth-page .floating-orb,
.tv-auth-page .floating-particles,
.tv-auth-page canvas {
  display: none !important;
}

.tv-auth-page .top-bar {
  height: 64px;
  padding: 0 28px;
  background: rgba(5, 10, 18, 0.88);
  border-bottom: 1px solid var(--divider);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.tv-auth-page .top-bar::before,
.tv-auth-page .login-card::before,
.tv-auth-page .auth-container::before {
  display: none;
}

.tv-auth-page .brand-header {
  gap: 11px;
}

.tv-auth-page .brand-logo-small,
.tv-auth-page .brand-logo {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tv-auth-page .brand-logo-small {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.tv-auth-page .brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.tv-auth-page .brand-logo-small img,
.tv-auth-page .brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: inherit;
  background: transparent;
  object-fit: contain;
}

.tv-auth-page .brand-logo-small::after,
.tv-auth-page .brand-logo::after {
  display: none;
  content: none;
}

.tv-auth-page .brand-title,
.tv-auth-page .brand-name {
  color: #f4f8fc;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tv-auth-page .brand-title {
  font-size: 14px;
  font-weight: 700;
}

.tv-auth-page .brand-subtitle,
.tv-auth-page .brand-tagline {
  color: #688099;
  letter-spacing: 0.04em;
}

.tv-auth-page .main-content {
  min-height: 100vh;
  padding: 100px 20px 36px;
}

.tv-auth-page .login-card,
.tv-auth-page .auth-container {
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid rgba(151, 178, 207, 0.14);
  border-radius: 14px;
  background: rgba(9, 17, 29, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  animation: none;
}

.tv-auth-page .login-card {
  opacity: 1;
  transform: none;
}

.tv-auth-page .card-header,
.tv-auth-page .auth-header {
  border-bottom: 1px solid var(--divider);
  background: #08121f;
}

.tv-auth-page .welcome-title,
.tv-auth-page .auth-title {
  color: #f5f8fb;
  font-size: 26px;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.tv-auth-page .welcome-subtitle,
.tv-auth-page .auth-subtitle,
.tv-auth-page .footer-text,
.tv-auth-page .auth-link-text {
  color: var(--text-secondary);
}

.tv-auth-page .form-label {
  color: #b9c9d8;
  font-size: 12px;
  font-weight: 600;
}

.tv-auth-page .form-label i,
.tv-auth-page .input-icon {
  color: #698199;
}

.tv-auth-page .form-input {
  min-height: 44px;
  color: #eef5fb;
  border: 1px solid rgba(151, 178, 207, 0.16);
  border-radius: 9px;
  background: #07111e;
  box-shadow: none;
}

.tv-auth-page .form-input::placeholder {
  color: #60758a;
}

.tv-auth-page .form-input:hover {
  border-color: rgba(151, 178, 207, 0.28);
}

.tv-auth-page .form-input:focus {
  border-color: rgba(19, 191, 242, 0.72);
  background: #081421;
  box-shadow: 0 0 0 3px rgba(19, 191, 242, 0.08);
}

.tv-auth-page .submit-btn {
  min-height: 42px;
  color: #031019;
  border: 1px solid rgba(19, 191, 242, 0.7);
  border-radius: 9px;
  background: #13bff2;
  box-shadow: none;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}

.tv-auth-page .submit-btn::before {
  display: none;
}

.tv-auth-page .submit-btn:hover {
  background: #45cff5;
  box-shadow: none;
  transform: translateY(-1px);
}

.tv-auth-page .security-badges {
  border-top-color: var(--divider);
}

.tv-auth-page .security-badge {
  color: #758ba0;
  background: transparent;
}

.tv-auth-page .security-badge i {
  color: #5d748b;
}

.tv-auth-page .card-footer,
.tv-auth-page .auth-link {
  border-top: 1px solid var(--divider);
  background: #07101b;
}

.tv-auth-page .footer-link,
.tv-auth-page .auth-link a {
  color: #4bcdf3;
  border-color: rgba(19, 191, 242, 0.2);
  background: rgba(19, 191, 242, 0.05);
}

.tv-auth-page .footer-link:hover,
.tv-auth-page .auth-link a:hover {
  color: #7bdcf8;
  border-color: rgba(19, 191, 242, 0.36);
  background: rgba(19, 191, 242, 0.08);
  box-shadow: none;
  transform: none;
}

.tv-auth-page .message,
.tv-auth-page .error-msg {
  border-radius: 8px;
}

.tv-auth-page .registration-locked {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 18, 0.92);
  backdrop-filter: blur(10px);
}

.tv-auth-page .registration-locked__panel {
  width: min(100%, 430px);
  padding: 38px;
  color: #f4f8fc;
  text-align: center;
  border: 1px solid rgba(151, 178, 207, 0.14);
  border-radius: 14px;
  background: #09111d;
  box-shadow: var(--shadow);
}

.tv-auth-page .registration-locked__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #f4f8fc;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tv-auth-page .registration-locked__brand img {
  display: block;
  width: 34px;
  height: 34px;
}

.tv-auth-page .registration-locked__icon {
  margin-bottom: 18px;
  color: #f2b84b;
  font-size: 34px;
}

.tv-auth-page .registration-locked h2 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.tv-auth-page .registration-locked p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.tv-auth-page .registration-locked a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 24px;
  padding: 0 22px;
  color: #031019;
  border-radius: 9px;
  background: #13bff2;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 640px) {
  .tv-auth-page .top-bar {
    height: 58px;
    padding: 0 18px;
  }

  .tv-auth-page .brand-logo-small {
    width: 34px;
    height: 34px;
  }

  .tv-auth-page .main-content {
    padding: 78px 14px 24px;
  }

  .tv-auth-page .card-header,
  .tv-auth-page .card-body,
  .tv-auth-page .card-footer,
  .tv-auth-page .auth-header,
  .tv-auth-page .auth-form,
  .tv-auth-page .auth-link {
    padding-left: 22px;
    padding-right: 22px;
  }

  .tv-auth-page .security-badges {
    gap: 8px;
  }

  .tv-auth-page .security-badge {
    font-size: 10px;
  }
}
