body {
  background: #0f172a;
  color: #e5e7eb;
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  box-sizing: border-box;
}

.form-box {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  margin: 0 auto;
  position: relative;
}

.island {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 9999;

  white-space: nowrap;
  display: inline-block;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.island.error {
  background: #ef4444;
  color: #fff;
}

.island.success {
  background: #22c55e;
  color: #fff;
}

.island.info {
  background: #3b82f6;
  color: #fff;
}

h1 {
  margin-bottom: 24px;
  font-size: 22px;
  color: #ffffff;
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #374151;
  margin-bottom: 16px;
  font-size: 16px;
  background-color: #1e293b;
  color: #e5e7eb;
  box-sizing: border-box;
}

input::placeholder {
  color: #94a3b8;
}

button {
  width: 100%;
  padding: 10px;
  background: #38bdf8;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 16px;
}

button:hover {
  background: #0ea5e9;
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 9999;
}

.maintenance-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.maintenance-window {
  width: 100%;
  max-width: 560px;
  min-width: 280px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 20px 15px;
  text-align: center;
}

.maintenance-title {
   font-size: 20px;
   margin: 0 0 8px;
}

.maintenance-desc {
   margin: 0 0 16px;
   color: #94a3b8;
   font-size: 14px;
}

/* Анимация плавного появления */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn .35s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

