@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(107.4deg, rgb(255 239 245) 11.1%, rgb(242 182 255) 37.5%, rgb(189 165 247) 54.3%, rgba(206, 190, 255, 0.9) 84.3%);
  overflow: hidden;
  position: relative;
}

/* Анимированные круги на фоне - светлая версия */
.background-animation {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-animation .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 20s infinite ease-in-out;
}

.background-animation .circle:nth-child(1) {
  width: 400px;
  height: 400px;
  background: rgb(255 42 255 / 82%);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.background-animation .circle:nth-child(2) {
  width: 500px;
  height: 500px;
  background: rgb(168 133 252 / 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: -5s;
}

.background-animation .circle:nth-child(3) {
  width: 300px;
  height: 300px;
  background: rgb(214 124 251 / 84%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Основной контейнер */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 410px;
  padding: 20px;
  height: 85vh;
}

/* Карточка с эффектом стекла - светлая версия */
.window {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 48px 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.window:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Логотип */
.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.logo-text {
  color: #1a1a2e;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: rgba(26, 26, 46, 0.4);
  font-weight: 400;
  font-size: 14px;
  margin-left: 6px;
}

/* Заголовок */
.welcome-section {
  margin-bottom: 36px;
}

.welcome {
  color: #1a1a2e;
  font-size: 27px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.subtitle {
  color: rgba(26, 26, 46, 0.5);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* Поля ввода */
.input-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(26, 26, 46, 0.3);
  font-size: 18px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.input-group .input-line {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 14px;
  color: #1a1a2e;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.input-group .input-line::placeholder {
  color: rgba(26, 26, 46, 0.3);
}

.input-group .input-line:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
}

.input-group .input-line:focus+.input-icon,
.input-group .input-line:focus~.input-icon {
  color: rgba(139, 92, 246, 0.7);
}

/* Переключение видимости пароля */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(26, 26, 46, 0.3);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: rgba(26, 26, 46, 0.6);
}

/* Дополнительные опции */
.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(26, 26, 46, 0.5);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.remember-me:hover {
  color: rgba(26, 26, 46, 0.7);
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8b5cf6;
  cursor: pointer;
  border-radius: 4px;
}

.forgot-link {
  color: rgba(26, 26, 46, 0.4);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
}

.forgot-link:hover {
  color: #8b5cf6;
}

/* Кнопка входа */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Спиннер на кнопке */
.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

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

/* Сообщение об ошибке - светлая версия */
.push-message {
  margin-bottom: 20px;
}

.result-info {
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.result-info .info-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.result-info-text {
  color: #1a1a2e;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.hiden-block {
  display: none;
}

/* Разделитель - светлая версия */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26, 26, 46, 0.08);
}

.divider span {
  color: rgba(26, 26, 46, 0.3);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Социальные кнопки - скрыты, но оставлены в коде */
.social-buttons {
  display: none;
  /* Скрываем блок */
}

/* Футер - светлая версия */
.footer {
  margin-top: 28px;
  text-align: center;
  color: rgba(26, 26, 46, 0.3);
  font-size: 12px;
  font-weight: 400;
}

.footer .version {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(26, 26, 46, 0.2);
}

/* Модальное окно "Забыли пароль" - светлая версия */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  color: #1a1a2e;
  font-size: 22px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(26, 26, 46, 0.3);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 4px;
}

.modal-close:hover {
  color: rgba(26, 26, 46, 0.6);
}

.modal-description {
  color: rgba(26, 26, 46, 0.5);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal .input-group .input-line {
  padding-left: 48px;
  background: rgba(255, 255, 255, 0.6);
}

.modal .input-group .input-line:focus {
  background: rgba(255, 255, 255, 0.8);
}

.modal .submit-btn {
  margin-top: 8px;
  margin-bottom: 0;
}

.modal .result-info {
  margin-top: 12px;
}

/* Адаптивность */
@media (max-width: 480px) {
  .window {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .welcome {
    font-size: 24px;
  }

  .input-group .input-line {
    font-size: 14px;
    padding: 12px 14px 12px 44px;
  }

  .options-row {
    gap: 12px;
    align-items: flex-start;
  }

  .modal {
    padding: 28px 20px;
  }
}

/* Для мобильных устройств с маленьким экраном */
@media (max-height: 700px) {
  .window {
    padding: 28px 24px;
  }

  .logo-section {
    margin-bottom: 20px;
  }

  .welcome-section {
    margin-bottom: 24px;
  }

  .welcome {
    font-size: 24px;
  }

  .input-fields {
    gap: 14px;
    margin-bottom: 16px;
  }

  .input-group .input-line {
    padding: 10px 14px 10px 44px;
  }
}

/* Стили для автозаполнения */
.input-line:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.8) inset !important;
  -webkit-text-fill-color: #1a1a2e !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}