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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.4s ease-out;
}

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

h1 {
  font-size: 24px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 24px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  margin-top: 16px;
}

label:first-of-type {
  margin-top: 0;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border 0.2s;
}

input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

button {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover { background: #1557b0; }
button:disabled { background: #dadce0; cursor: default; }

.result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.result.error { display: block; background: #fce8e6; color: #c5221f; }
.result.success { display: block; background: #e6f4ea; color: #137333; }

.hint {
  font-size: 13px;
  color: #5f6368;
  margin-top: 16px;
  text-align: center;
}

.hint a {
  color: #1a73e8;
  text-decoration: none;
}

.hint a:hover { text-decoration: underline; }


/* ============================================================
   Health — progress bars + alerts (Пакет 2.3)
   ============================================================ */
.admin-progress {
    width: 100%;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.admin-progress-bar {
    height: 100%;
    background: var(--success);
    transition: width 0.3s;
    border-radius: 4px;
}

.admin-progress-bar.warn {
    background: var(--warning);
}

.admin-progress-bar.danger {
    background: var(--danger);
}

.admin-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-alert-warn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.admin-alert-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c6cb;
}

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