* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Onest', sans-serif;
}

body {
  background-color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* -----------------------------------
   1. КНОПКА МУЗЫКИ (ЛЕВЫЙ ВЕРХНИЙ УГОЛ)
-------------------------------------- */
.audio-control {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #272727;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.audio-control:hover {
  background: #373737;
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.audio-control.playing {
  border-color: #2AABEE;
  box-shadow: 0 0 12px rgba(42, 171, 238, 0.4);
}

.audio-icon {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none !important;
}

/* -----------------------------------
   2. ТЕЛЕГРАМ-ВИДЖЕТ (ПРАВЫЙ НИЖНИЙ УГОЛ)
-------------------------------------- */
.telegram-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  z-index: 100;
}

/* Плашка-подсказка при наведении */
.telegram-widget .tooltip {
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background: #272727;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Треугольный указатель подсказки */
.telegram-widget .tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #272727;
}

.telegram-widget:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Кнопка с логотипом Telegram */
.telegram-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2AABEE;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(42, 171, 238, 0.4);
  transition: all 0.3s ease;
}

.telegram-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.6);
}

.telegram-icon {
  width: 26px;
  height: 26px;
}

/* -----------------------------------
   3. ОСНОВНАЯ ФОРМА ВХОДА
-------------------------------------- */
.container {
  --form-width: 330px;
  --login-box-color: #272727;
  --input-color: #3a3a3a;
  --button-color: #373737;
  --footer-color: rgba(255, 255, 255, 0.5);

  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--login-box-color);
  border-radius: 24px;
  width: var(--form-width);
  padding: 2px;
  z-index: 8;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 0 8px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(255, 255, 255, 0.08);
}

.container::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  z-index: 1;
  background: conic-gradient(
    from 45deg,
    transparent 75%,
    #fff,
    transparent 100%
  );
  animation: spin 4s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.login-box {
  background: var(--login-box-color);
  border-radius: 22px;
  padding: 28px 24px;
  width: 100%;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow:
    inset 0 40px 60px -8px rgba(255, 255, 255, 0.12),
    inset 4px 0 12px -6px rgba(255, 255, 255, 0.12),
    inset 0 0 12px -4px rgba(255, 255, 255, 0.12);
}

.form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(0, 0, 0, 0.2)
  );
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.3),
    -6px -6px 12px rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  border: 2px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 4px;
}

.logo::before {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 50%;
  height: 20%;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  border: 2px solid #fff;
}

.logo::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 2px solid #fff;
}

.header {
  width: 100%;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: white;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--input-color);
  color: white;
  outline: none;
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.button {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: var(--button-color);
  color: white;
  transition: all 0.3s ease;
  box-shadow:
    inset 0px 3px 6px -4px rgba(255, 255, 255, 0.6),
    inset 0px -3px 6px -2px rgba(0, 0, 0, 0.8);
}

.sign-in {
  margin-top: 4px;
}

.button:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0px 3px 6px rgba(255, 255, 255, 0.6),
    inset 0px -3px 6px rgba(0, 0, 0, 0.8),
    0px 0px 8px rgba(255, 255, 255, 0.1);
}

.footer {
  width: 100%;
  text-align: center;
  color: var(--footer-color);
  font-size: 12px;
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.6;
}

.footer .link {
  position: relative;
  color: var(--footer-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  border-radius: 6px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer .link:hover {
  color: #fff;
}

.footer .link:hover::after {
  width: 100%;
}