.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fff7e9 0, var(--paper) 126px),
    var(--paper);
  box-shadow: var(--shadow);
  padding: 24px 18px;
}

.login-card h1 {
  margin-bottom: 8px;
}

.login-copy {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 700;
}

.login-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 14px;
}

.thank-you-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid rgba(201, 154, 69, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(224, 183, 109, 0.22), transparent 38%),
    rgba(255, 253, 248, 0.96);
  padding: 18px;
}

.thank-you-panel h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.55rem;
}

.thank-you-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.instagram-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(201, 154, 69, 0.5);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(131, 58, 180, 0.95), rgba(253, 29, 29, 0.88), rgba(252, 176, 69, 0.9));
  color: white;
  padding: 12px;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(131, 58, 180, 0.22);
}

.instagram-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.instagram-card strong,
.instagram-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-card strong {
  font-size: 1rem;
  font-weight: 950;
}

.instagram-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.login-button {
  min-height: 48px;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 63, 57, 0.22);
}

.login-button-secondary {
  border-color: rgba(177, 123, 54, 0.45);
  background: linear-gradient(135deg, #b17b36, #e0b76d);
  box-shadow: 0 10px 24px rgba(177, 123, 54, 0.2);
}

.login-error {
  margin: 16px 0 0;
  color: var(--danger);
  font-weight: 800;
}

.contact-toggle {
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 950;
  text-decoration: underline;
}

.contact-form {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.contact-form textarea {
  width: 100%;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}
