:root {
  color-scheme: light;
  --teal: #0f9488;
  --teal-dark: #0f766e;
  --teal-deep: #115e59;
  --text: #172033;
  --muted: #667085;
  --border: #d9e2ef;
  --bg: #ffffff;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(15, 118, 110, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  align-items: center;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 55%, var(--teal-dark) 100%);
  display: flex;
  justify-content: center;
  min-height: 275px;
  padding: 32px 20px;
  width: 100%;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 960px;
}

.brand-logo-wrap {
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  justify-content: center;
  padding: 28px 55px;
}

.brand-logo {
  display: block;
  height: 210px;
  max-width: min(100%, 650px);
  object-fit: contain;
  width: auto;
}

.page-main {
  margin: 0 auto;
  max-width: 720px;
  padding: 40px 20px 56px;
}

.register-card,
.policies-section,
.agreement-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  padding: 32px;
}

.register-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
}

.register-card h1 {
  color: var(--teal-deep);
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin: 0 0 8px;
  text-align: center;
}

.register-card .subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
  text-align: center;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  color: var(--teal-dark);
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-field input {
  background: #ffffff;
  border: 1px solid #99d5cf;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 148, 136, 0.15);
  outline: none;
}

#register-btn,
.policy-link {
  background: var(--teal);
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

#register-btn {
  margin-top: 8px;
  width: 100%;
}

#register-btn:hover,
.policy-link:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.policies-section h2,
.agreement-summary h2 {
  color: var(--teal-deep);
  font-size: 1.25rem;
  margin: 0 0 18px;
  text-align: center;
}

.policy-grid {
  display: grid;
  gap: 12px;
}

.policy-link {
  width: 100%;
}

.agreement-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  max-height: 420px;
  overflow-y: auto;
  padding: 18px;
}

.agreement-box pre {
  font-family: inherit;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.login-link {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
  text-align: center;
}

.login-link a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

.site-footer {
  color: var(--muted);
  font-size: 13px;
  padding: 0 20px 32px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .page-main {
    padding: 28px 16px 40px;
  }

  .register-card,
  .policies-section,
  .agreement-summary {
    padding: 24px 18px;
  }

  .brand-logo-wrap {
    padding: 20px 35px;
  }

  .brand-logo {
    height: 150px;
  }
}
