:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #C00017;
  color: #111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #C00017;
}

.page-shell {
  padding: 28px 18px 36px;
  max-width: 540px;
  margin: 0 auto;
}

.hero {
  background: #ffffff;
  border: 1px solid #ffd8d8;
  border-radius: 30px;
  padding: 32px 22px 34px;
  text-align: center;
  box-shadow: 0 24px 65px rgba(176, 0, 0, 0.08);
}

.logo {
  width: clamp(120px, 28vw, 180px);
  max-width: 180px;
  margin: 0 auto 18px;
  display: block;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: #b00000;
}

.subtitle {
  margin: 16px auto 30px;
  color: #5a1010;
  max-width: 360px;
  font-size: 1rem;
  line-height: 1.6;
}


.actions {
  display: grid;
  gap: 14px;
}

button {
  font: inherit;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(176, 0, 0, 0.24);
  outline-offset: 2px;
}

#loginButton,
.form-submit {
  background: #b00000;
  color: #ffffff;
  padding: 16px 18px;
  font-weight: 700;
}

#createAccountButton {
  background: #ffffff;
  color: #b00000;
  padding: 16px 18px;
  box-shadow: inset 0 0 0 1px #b00000;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 28px;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(8px);
}

.modal-panel {
  margin: 20px 0;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(100%, 460px);
  background: #ffffff;
  border-radius: 28px;
  padding: 26px 22px 24px;
  box-shadow: 0 26px 62px rgba(17, 17, 17, 0.16);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(176, 0, 0, 0.08);
  color: #b00000;
  font-size: 1.5rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #b00000;
}

.modal-header p {
  margin: 10px 0 0;
  color: #511111;
  font-size: 0.95rem;
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.auth-form.hidden {
  display: none;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #351010;
}

input,
select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  color: #111;
  background: #fff;
}

input:focus {
  border-color: #b00000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.12);
}

.about-container {
  width: min(100%, 640px);
  margin: 20px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.08);
}

.about-container summary {
  list-style: none;
}

.about-toggle {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  color: #b00000;
  border: 1px solid #b00000;
  border-radius: 26px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}

.about-toggle::-webkit-details-marker {
  display: none;
}

.about-section {
  background: #1A73E8;
  color: #ffffff;
  padding: 32px 20px 40px;
}

.about-shell {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.about-section h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
}

.about-item {
  display: grid;
  gap: 8px;
}

.about-question {
  margin: 0;
  font-size: 1rem;
}

.about-item p:last-child {
  margin: 0;
  line-height: 1.6;
}

.message {
  margin: 18px 0 0;
  min-height: 1.4em;
  color: #b00000;
  font-weight: 600;
}

.message.success {
  color: #1b5e20;
}

