/* Базовые настройки */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f9fafb;
}

/* Контейнер приложения */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Шапка */
.app__header {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(16px);
}

.app__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app__logo {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #22d3ee, #6366f1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  font-size: 18px;
}

.app__title-main {
  font-size: 16px;
  font-weight: 600;
}

.app__title-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

/* Основное содержимое */
.app__main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карточки */
.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.7),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.card__text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #e5e7eb;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
  box-shadow:
    0 10px 25px rgba(34, 197, 94, 0.45),
    0 0 0 1px rgba(22, 163, 74, 0.8);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(34, 197, 94, 0.5),
    0 0 0 1px rgba(22, 163, 74, 0.9);
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn--secondary:hover {
  background: rgba(30, 64, 175, 0.8);
}

/* Формы */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form__label {
  font-size: 12px;
  color: #9ca3af;
}

.form__input {
  height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 14px;
  outline: none;
}

.form__input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}

/* Сообщения */
.alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 10px;
}

.alert--error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.alert--info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.8);
  color: #e0f2fe;
}

/* Подвал */
.app__footer {
  padding: 10px 16px 14px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid rgba(31, 41, 55, 0.8);
}

/* Мобильные отступы и ширина */
@media (min-width: 640px) {
  .app__main {
    max-width: 420px;
    margin: 0 auto;
  }
}