* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Overlay для затемнения фонового изображения */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 41, 128, 0.85), rgba(38, 208, 206, 0.75));
  z-index: -1;
}

/* Дополнительные фоновые элементы */
body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.07) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.container {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #ff8a00, #e52e71, #1a2980);
  border-radius: 20px 20px 0 0;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a2980;
  margin-bottom: 30px;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 20px;
}

/* Секция скачивания приложения */
.download-section {
  margin-top: 25px;
  text-align: center;
}

.download-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 41, 128, 0.3), transparent);
  margin-bottom: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #3ddc84, #2da65e);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(61, 220, 132, 0.35);
  width: 100%;
}

.download-btn:hover {
  background: linear-gradient(135deg, #34c976, #259452);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61, 220, 132, 0.45);
}

.download-btn i {
  font-size: 1.4rem;
}

.download-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.3px;
}

.role-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: #1a2980;
  border: 2px solid rgba(26, 41, 128, 0.7);
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.role-button:hover {
  background: rgba(26, 41, 128, 0.9);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  border-color: transparent;
}

.role-button i {
  margin-right: 10px;
  font-size: 1.3rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalOpen 0.3s;
  z-index: 1001;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 1.8rem;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #1a2980;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 1.05rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #1a2980;
  box-shadow: 0 0 0 3px rgba(26, 41, 128, 0.1);
}

.bin-group {
  position: relative;
}

.bin-input-group {
  display: flex;
  align-items: center;
}

.bin-input-group input {
  flex: 1;
  margin-right: 8px;
}

.bin-lookup-btn {
  background: #1a2980;
  color: white;
  border: none;
  border-radius: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.bin-lookup-btn:hover {
  background: #152163;
  transform: scale(1.05);
}

.submit-btn {
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(26, 41, 128, 0.2);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(26, 41, 128, 0.3);
  background: linear-gradient(135deg, #26d0ce, #1a2980);
}

.language-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lang-btn {
  background: white;
  border: 2px solid #1a2980;
  color: #1a2980;
  border-radius: 8px;
  padding: 5px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: #1a2980;
  color: white;
}

.flag-kz, .flag-ru {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.flag-kz {
  background: #00abc2;
}

.flag-kz::before {
  content: '☀';
  position: absolute;
  top: -2px;
  left: 3px;
  font-size: 10px;
  color: #ffd700;
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 33%, #0039a6 33%, #0039a6 66%, #d52b1e 66%);
}

.lang-btn:hover .flag-kz {
  border-color: rgba(255,255,255,0.3);
}

.lang-btn:hover .flag-ru {
  border-color: rgba(255,255,255,0.3);
}

/* Responsive design */
@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
  }
  
  .logo {
    font-size: 2rem;
  }
  
  .role-button {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .modal-content {
    padding: 25px 20px;
  }
}