@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #f39c12;
  --gold-light: #f1c40f;
  --gold-dark: #D4881A;
  --bg: transparent;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(255, 255, 255, 0.6);
  --border: rgba(180, 190, 210, 0.5);
  --text: #1e2a3a;
  --text-muted: #5a6880;
  --text-subtle: #8a9ab5;
  --radius: 14px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  min-height: 100%;
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Background ambiance */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(400px, 80vw, 900px);
  height: clamp(400px, 60vh, 700px);
  background: radial-gradient(ellipse at center, rgba(243, 156, 18, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(195, 207, 226, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 48px) clamp(20px, 6vw, 44px);
  box-shadow:
    0 0 0 1px rgba(245, 166, 35, 0.05),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.3);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 36px;
}

.brand {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.brand span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(13px, 3vw, 15px);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* Role buttons */
.roles-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.role-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.role-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.role-btn:hover {
  border-color: rgba(245, 166, 35, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.role-btn:hover::before {
  opacity: 1;
}

.role-btn:active {
  transform: translateX(2px) scale(0.99);
}

.role-info {
  flex: 1;
  text-align: left;
}

.role-name {
  display: block;
  font-weight: 600;
  font-size: clamp(13px, 3vw, 14px);
  color: var(--text);
  margin-bottom: 2px;
}

.role-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.role-arrow {
  stroke: var(--text-subtle);
  flex-shrink: 0;
  transition: stroke var(--transition), transform var(--transition);
}

.role-btn:hover .role-arrow {
  stroke: var(--gold);
  transform: translateX(3px);
}

/* Terms */
.terms-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.terms-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--text-subtle);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  margin-top: 1px;
  transition: var(--transition);
  position: relative;
}

.terms-checkbox:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.terms-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.terms-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.terms-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.warning {
  display: none;
  margin-top: 10px;
  font-size: 12px;
  color: #e05252;
  font-weight: 500;
  align-items: center;
  gap: 6px;
}

.warning.visible {
  display: flex;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-text a:hover {
  color: var(--gold-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-subtle);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    border-radius: 18px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (min-width: 900px) {
  .card {
    max-width: 500px;
  }
}