@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2f6fed;
  --accent2: #255ad6;
  --danger: #b91c1c;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(
      1000px 480px at 20% -10%,
      rgba(47, 111, 237, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--text);
}

.page {
  min-height: 100vh;
  padding: 22px 14px 36px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 640px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.header {
  padding: 22px 20px 14px;
  border-bottom: 1px solid var(--line);
}
h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.1px;
}
.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

form {
  padding: 18px 20px 20px;
}

.row {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.req {
  color: var(--danger);
  margin-left: 4px;
}

/* Inputs large for older users */
input,
select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #e6e7ec;
  background: #fff;
  font-size: 17px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

input::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

/* Make select arrow visible & comfortable on mobile */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px,
    calc(100% - 44px) 0.6em;
  background-size:
    6px 6px,
    6px 6px,
    1px 2.6em;
  background-repeat: no-repeat;
}

.btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(47, 111, 237, 0.22);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.msg {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  min-height: 20px;
}
.msg.error {
  color: var(--danger);
  font-weight: 800;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 12px;
}

.footerNote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  text-align: center;
}

/* Small phones */
@media (max-width: 360px) {
  h1 {
    font-size: 20px;
  }
  input,
  select {
    font-size: 16px;
    height: 50px;
  }
  .btn {
    height: 52px;
    font-size: 17px;
  }
}

/* Tablets */
@media (min-width: 720px) {
  .page {
    padding: 36px 28px 48px;
  }
  .container {
    max-width: 760px;
  }
  .header {
    padding: 26px 28px 18px;
  }
  form {
    padding: 22px 28px 28px;
  }
  h1 {
    font-size: 28px;
  }
  .sub {
    font-size: 16px;
  }
}
