* {
  box-sizing: border-box;
}

:root {
  --navy: #12314a;
  --blue: #205c86;
  --gold: #d9a33a;
  --ink: #1e2933;
  --muted: #66768a;
  --line: #dfe6ec;
  --surface: #ffffff;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(11, 42, 65, 0.82), rgba(11, 42, 65, 0.28)),
    url("../images/register.jpg") center / cover no-repeat fixed;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.register-card {
  width: min(620px, 100%);
  padding: 34px 40px 28px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(5, 29, 48, 0.28);
  backdrop-filter: blur(10px);
}

.card-header {
  margin-bottom: 24px;
  text-align: center;
}

.brand-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(18, 49, 74, 0.16);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.form-group {
  min-width: 0;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #354557;
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fbfdfe;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select {
  cursor: pointer;
}

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

input:focus,
select:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(32, 92, 134, 0.12);
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.btn {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 49, 74, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 49, 74, 0.24);
}

.btn:active {
  transform: translateY(0);
}

.login-text {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

@media (max-width: 600px) {
  .page-shell {
    align-items: flex-start;
    padding: 18px 12px;
  }

  .register-card {
    padding: 26px 20px 22px;
    border-radius: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .full-width {
    grid-column: auto;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }
}
