:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fb;
}
* { box-sizing: border-box; }

html, body, .shell { width: 100%; min-height: 100%; margin: 0; }

body { min-height: 100vh; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.join-card {
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid #e1e7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 55, 88, 0.12);
}

.brand {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 14px 26px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  background: linear-gradient(150deg, #0d1c34 0%, #10254a 100%);
  box-shadow: 0 12px 26px rgba(9, 20, 40, 0.22);
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  height: 30px;
  object-fit: contain;
}

h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
.lead { margin: 0 0 24px; color: #657087; line-height: 1.5; }

form { display: grid; gap: 10px; }
label { margin-top: 5px; font-size: 14px; font-weight: 650; }
label span { color: #7a8497; font-weight: 400; }

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd7e5;
  border-radius: 10px;
  color: inherit;
  background: #fff;
  font: inherit;
}

input:focus { outline: 3px solid rgba(52, 104, 212, 0.16); border-color: #3468d4; }

button {
  min-height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #3468d4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: #2858ba; }
button:disabled { cursor: wait; opacity: 0.7; }

.message { display: none; margin: 16px 0 0; color: #b42318; line-height: 1.45; }
.message.visible { display: block; }

.editor-shell, .editor { width: 100vw; height: 100vh; }
.editor-shell { position: fixed; inset: 0; background: #fff; }

@media (max-width: 520px) {
  .shell { padding: 12px; }
  .join-card { padding: 24px 20px; border-radius: 14px; }
  .brand { padding: 12px 20px; }
  .brand-logo { max-width: min(200px, 100%); height: 28px; }
  h1 { font-size: 24px; }
}
