@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700;9..40,800&display=swap');

:root {
  --bg: #080e1a;
  --surface: rgba(10,16,30,.82);
  --surface-2: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.09);
  --accent: #0ea5e9;
  --accent-2: #008c9e;
  --success: #22c55e;
  --danger: #ef4444;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 14% 10%, rgba(14,165,233,.18), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(0,140,158,.16), transparent 24%),
    linear-gradient(180deg,#08101e 0%,#080e1a 100%);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px 0 0;
  background: rgba(8,14,26,.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.brand {
  height: 72px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#0077cc,#005fa3);
  position: relative;
}

.brand::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 0;
  border-top: 72px solid #005fa3;
  border-right: 22px solid transparent;
}

.brand img {
  position: relative;
  z-index: 1;
  width: 82px;
  max-height: 52px;
  object-fit: contain;
  filter: brightness(1.22) drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

.topbar-title {
  text-align: center;
  min-width: 0;
}

.topbar-title span,
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.topbar h1 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .08em;
}

.btn-login,
.form-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.btn-login:hover,
.form-actions a:hover {
  border-color: rgba(14,165,233,.45);
  color: #7dd3fc;
  background: rgba(14,165,233,.14);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.intro-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.intro-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  overflow: hidden;
}

.intro-panel::after {
  content: '';
  position: absolute;
  right: -52px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 28px solid rgba(14,165,233,.08);
}

.intro-panel h2 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .02em;
}

.intro-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.intro-stats {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.intro-stats div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.intro-stats strong {
  color: #7dd3fc;
  font-family: var(--font-display);
  font-size: 18px;
}

.intro-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card {
  overflow: hidden;
}

.card-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.card-header h2 {
  margin: 5px 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
}

.card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

form {
  padding: 26px 28px 28px;
}

.form-section {
  margin-bottom: 22px;
}

h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

input[type="file"] {
  min-height: auto;
  padding: 10px;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(14,165,233,.72);
  background: rgba(14,165,233,.08);
  box-shadow: 0 0 0 3px rgba(14,165,233,.14);
}

.photo-picker {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(14,165,233,.55);
  background: rgba(14,165,233,.12);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-picker small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.terms {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-transform: none;
  letter-spacing: 0;
}

.terms input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.terms span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.btn-submit {
  min-width: 190px;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg,var(--accent-2),#0077cc);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,140,158,.28);
}

.btn-submit:hover {
  filter: brightness(1.08);
}

.msg {
  margin: 18px 28px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.msg.success {
  border-color: rgba(34,197,94,.32);
  background: rgba(34,197,94,.12);
  color: #bbf7d0;
}

.msg.error {
  border-color: rgba(239,68,68,.34);
  background: rgba(239,68,68,.12);
  color: #fecaca;
}

@media (max-width: 920px) {
  .page {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: 92px 1fr;
    padding-right: 12px;
  }

  .brand {
    width: 92px;
  }

  .topbar-title {
    text-align: left;
  }

  .topbar h1 {
    font-size: 14px;
    letter-spacing: .04em;
  }

  .btn-login {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0 0 12px 12px;
  }

  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-header,
  form,
  .intro-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .photo-picker {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn-submit {
    width: 100%;
  }
}
