/* ===== Экран входа в стиле Telegram ===== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  color: #0f0f0f;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(64, 190, 255, .55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20, 130, 200, .5), transparent 55%),
    linear-gradient(135deg, #3390ec 0%, #2AABEE 45%, #229ED9 100%);
  padding: 24px;
}

.auth-art {
  color: #fff;
  text-align: center;
  max-width: 420px;
}

.big-plane {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .28));
}

.auth-art h1 {
  font-size: 44px;
  font-weight: 600;
  margin: 18px 0 8px;
  letter-spacing: .2px;
}

.auth-art p { font-size: 17px; opacity: .92; }

@media (max-width: 860px) {
  .auth-art { display: none; }
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  width: 100%;
  max-width: 430px;
  padding: 34px 38px 26px;
}

.logo {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
}

.tabs {
  display: flex;
  background: #f0f2f5;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 0;
  font-size: 14px;
  color: #5d6365;
  cursor: pointer;
  border-radius: 8px;
  transition: all .15s;
}

.tab.active {
  background: #fff;
  color: #0f0f0f;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

form label { display: block; font-size: 13px; color: #707579; margin: 12px 0 6px; }

form input {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}

form input:focus { border-color: #3390ec; }

form button[type=submit] {
  width: 100%;
  margin-top: 20px;
  background: #3390ec;
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 13px;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
}

form button[type=submit]:hover { background: #2f83d6; }

.hint { text-align: center; margin-top: 14px; font-size: 13px; color: #707579; }
.hint a { color: #3390ec; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.is-hidden { display: none !important; }

.form-error {
  margin-top: 14px;
  background: #fdeceb;
  color: #c0342c;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13.5px;
  text-align: center;
}

/* ===== телефоны: карточка входа прижата к низу экрана ===== */
@media (max-width: 600px) {
  .auth-wrap {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
    justify-content: flex-end;
    background:
      radial-gradient(520px 300px at 85% -8%, rgba(255, 255, 255, .28), transparent 60%),
      linear-gradient(160deg, #42A5F5 0%, #2AABEE 45%, #1E93D2 100%);
  }
  .auth-card {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 22px 22px 0 0;
    padding: 26px 22px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .28);
    animation: authUp .28s ease-out;
  }
  .logo { width: 52px; height: 52px; margin-bottom: 12px; }
  .tabs { margin-bottom: 14px; }
  form label { margin: 10px 0 5px; }
  form input { font-size: 16px; padding: 13px 14px; }
  form button[type=submit] { min-height: 48px; }

  @keyframes authUp { from { transform: translateY(30px); opacity: .7; } }
}