:root {
  --brand: #6c2afc;
  --brand-light: #8952ff;
  --text: #111111;
  --text-secondary: #3c4043;
  --muted: #5f6368;
  --line: #cccccc;
  --bg: #fafafa;
  --paper: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fce8e6;
  --radius: 8px;
  --heading: "Space Grotesk", "Manrope", "Roboto", "Helvetica", "Arial", sans-serif;
  --body: "Manrope", "Roboto", "Helvetica", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body);
  color: var(--text-secondary);
  background: var(--bg);
}

.page {
  display: flex;
  min-height: 100vh;
}

.brand {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.brand span {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

.form-pane {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 88px 24px 32px;
}

.form-card {
  width: 100%;
  max-width: 472px;
}

h1 {
  margin: 0 0 16px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  text-align: center;
}

.lede {
  margin: 0 0 32px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--brand);
  border-color: transparent;
}

.hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.875rem;
}

.consent-copy {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.5;
}

button,
.button-link {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--brand);
  color: #ffffff;
}

.primary:hover {
  background: #5620c9;
}

.secondary {
  background: transparent;
  color: var(--brand);
}

.panel {
  display: none;
}

@media (min-width: 900px) {
  .brand {
    top: 32px;
    left: 24px;
    padding-left: 24px;
  }

  .form-pane {
    width: 50%;
    align-items: flex-start;
    padding: 48px 48px 48px 148px;
  }

  .form-card {
    margin: 0;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.16;
  }

  .panel {
    display: flex;
    width: 50%;
    padding: 24px;
  }

  .panel-inner {
    flex: 1;
    padding: 64px 48px;
    color: #ffffff;
    background: linear-gradient(142deg, #6c2afc 0%, #8952ff 100%);
  }

  .panel-inner h2 {
    margin: 0 0 24px;
    max-width: 520px;
    font-family: var(--heading);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.25;
  }

  .panel-inner p {
    margin: 0;
    max-width: 560px;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 32px;
  }
}
