/* ===== СТРАНИЦА ВХОДА ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Comfortaa', cursive;
  background: linear-gradient(135deg, #F5F7FA 0%, #E5E9F0 100%);
  overflow-x: hidden;
  width: 100%;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.login-page {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* ===== КАРТОЧКА ВХОДА ===== */
.login-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.login-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(30, 58, 138, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(30, 58, 138, 0.15);
}

/* ===== ВЕРХНЯЯ ПОЛОСА ===== */
.login-top-bar {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F2B6E 100%);
  padding: 25px 20px;
  text-align: center;
  border-bottom: 3px solid #F59E0B;
}

.top-bar-title {
  display: block;
  color: white;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.top-bar-subtitle {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== КОНТЕНТ ===== */
.login-content {
  padding: 35px 30px 30px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 8px;
  text-align: center;
}

.login-subtitle {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 25px;
  text-align: center;
}

/* ===== ФОРМА ===== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1E3A8A;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: #F59E0B;
  font-size: 14px;
  width: 18px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  font-family: 'Comfortaa', cursive;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #F9FAFB;
  color: #1F2937;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #1E3A8A;
  background: white;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-control::placeholder {
  color: #9CA3AF;
  font-size: 14px;
}

/* ===== КНОПКА ВХОДА ===== */
.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1E3A8A 0%, #0F2B6E 100%);
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Comfortaa', cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 10px;
}

.btn-login i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-login:hover {
  background: #F59E0B;
  color: #1E3A8A;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-login:hover i {
  transform: translateX(5px);
}

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

/* ===== АЛЁРТЫ ===== */
.alert {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid transparent;
}

.alert-error {
  background: #FEF2F2;
  color: #B91C1C;
  border-left-color: #DC2626;
  border: 1px solid #FEE2E2;
}

.alert i {
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 25px 0 20px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
}

.divider-text {
  font-size: 12px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== VK ID ВИДЖЕТ ===== */
#vk-login-widget {
  margin: 10px 0 20px;
  min-height: 52px;
  display: flex;
  justify-content: center;
}

#vk-login-widget > div {
  width: 100% !important;
}

/* Стили для кнопки внутри виджета */
.vkuiButton {
  width: 100% !important;
  font-family: 'Comfortaa', cursive !important;
  border-radius: 50px !important;
}

/* ===== ФУТЕР ФОРМЫ ===== */
.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}

.login-footer p {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 10px;
}

.login-footer a {
  color: #1E3A8A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  border-bottom: 1px dashed #F59E0B;
  padding-bottom: 2px;
}

.login-footer a:hover {
  color: #F59E0B;
  border-bottom-color: #1E3A8A;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9CA3AF !important;
  font-size: 13px !important;
  font-weight: normal !important;
  border-bottom: none !important;
  margin-top: 5px;
}

.back-home i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.back-home:hover {
  color: #1E3A8A !important;
}

.back-home:hover i {
  transform: translateX(-3px);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .login-page {
    padding: 30px 15px;
    align-items: center;
  }
  
  .login-wrapper {
    max-width: 450px;
  }
  
  .login-content {
    padding: 25px 20px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-subtitle {
    font-size: 13px;
  }
  
  .top-bar-title {
    font-size: 22px;
  }
  
  .top-bar-subtitle {
    font-size: 11px;
  }
  
  .form-control {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .btn-login {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 20px 10px;
  }
  
  .login-wrapper {
    max-width: 100%;
  }
  
  .login-content {
    padding: 20px 15px;
  }
  
  .login-title {
    font-size: 22px;
  }
  
  .login-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .top-bar-title {
    font-size: 20px;
  }
  
  .top-bar-subtitle {
    font-size: 10px;
  }
  
  .form-group label {
    font-size: 12px;
  }
  
  .form-control {
    padding: 11px 14px;
    font-size: 14px;
  }
  
  .btn-login {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .alert {
    padding: 12px 15px;
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .login-footer p {
    font-size: 13px;
  }
  
  .login-divider {
    margin: 20px 0 15px;
  }
  
  .divider-text {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .login-content {
    padding: 15px 12px;
  }
  
  .login-title {
    font-size: 20px;
  }
  
  .top-bar-title {
    font-size: 18px;
  }
  
  .form-group {
    gap: 5px;
  }
  
  .form-control {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .btn-login {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .login-footer {
    margin-top: 20px;
    padding-top: 15px;
  }
}

/* ===== ФУТЕР ===== */
footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  background: #0F2B6E;
  overflow-x: hidden;
}
/* ===== VK ID ВИДЖЕТ ===== */
#vkIdContainer {
  margin: 10px 0 20px;
  min-height: 52px;
  display: flex;
  justify-content: center;
}

#vkIdContainer > div {
  width: 100% !important;
}

/* Стили для кнопки внутри виджета */
.vkuiButton {
  width: 100% !important;
  font-family: 'Comfortaa', cursive !important;
  border-radius: 50px !important;
}