/* Web public index and authentication card screens. */
.web-index-body,
.web-auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, var(--page-start) 0%, var(--page-mid) 40%, var(--page-end) 100%);
  padding: 16px;
}

.web-index-shell {
  width: min(1080px, 100%);
  display: grid;
  gap: 18px;
}

.web-index-hero {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(34, 158, 217, 0.14), rgba(255, 255, 255, 0.92)),
    var(--surface-0);
  border: 1px solid var(--tg-border);
  border-radius: 22px;
  box-shadow: 0 16px 36px var(--page-shadow);
}

.web-index-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: #1b6f9a;
}

.web-index-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.98;
}

.web-index-copy {
  margin: 0;
  max-width: 680px;
  font-size: 15px;
  color: var(--text-muted);
}

.web-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.web-site-card {
  display: grid;
  gap: 14px;
  min-height: 200px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 253, 0.94)),
    var(--surface-0);
  border: 1px solid var(--tg-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.web-site-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.14);
  border-color: #9fc8e2;
}

.web-site-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.web-site-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
}

.web-site-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff7fd;
  border: 1px solid #cfe7f7;
  font-size: 12px;
  font-weight: 700;
  color: #155a80;
}

.web-site-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.web-site-card p {
  margin: 0;
  color: #57697a;
  font-size: 14px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-0);
  border: 1px solid var(--tg-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px var(--page-shadow);
}

.auth-brand {
  text-align: center;
  margin-bottom: 14px;
}

.auth-logo {
  display: block;
  width: min(132px, 32vw);
  height: auto;
  max-height: 76px;
  margin: 0 auto;
  border-radius: 0;
  object-fit: contain;
  background: #fff;
}

.auth-brand h1 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.auth-brand p {
  margin: 0;
  color: var(--text-muted);
}

.auth-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-form label { font-weight: 600; }

.auth-form input,
.settings-form input,
.chat-footer textarea {
  width: 100%;
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  background: var(--surface-0);
  color: var(--tg-text);
}

.auth-form button,
.settings-form button,
.menu-card button,
.send-btn,
.quick-keyboard button,
.attach-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.auth-form button,
.settings-form button,
.send-btn {
  background: var(--tg-header);
  color: #fff;
  font-weight: 600;
}

.auth-form button[disabled] {
  cursor: not-allowed;
}

.send-btn[disabled],
.attach-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
}

.auth-form button.is-loading {
  background: #6ca5c3;
}

.auth-form button.is-cooldown {
  background: linear-gradient(135deg, #5f7388, #466175);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.auth-help {
  margin: 0;
  color: #607180;
  font-size: 13px;
}

.auth-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #26804a;
}

.auth-status.error { color: #b3261e; }

.web-auth-body {
  background: #050506;
  color: #f7f8ff;
}

.web-auth-body .auth-card {
  max-width: 430px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #181a20;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34);
}

.web-auth-body .auth-logo {
  width: 76px;
  max-height: 76px;
  border-radius: 20px;
  background: transparent;
}

.web-auth-body .auth-brand h1 {
  color: #f7f8ff;
  font-size: 28px;
  font-weight: 650;
}

.web-auth-body .auth-brand p,
.web-auth-body .auth-help {
  color: #bfc3ce;
}

.web-auth-body .auth-form label {
  color: #f7f8ff;
}

.web-auth-body .auth-form input {
  border-color: rgba(255, 255, 255, 0.08);
  background: #24272f;
  color: #f7f8ff;
}

.web-auth-body .auth-form button {
  border: 0;
  background: linear-gradient(135deg, #2768ff, #7b3cff);
  box-shadow: 0 18px 34px rgba(65, 87, 255, 0.22);
}
