:root {
  --bg: #08111b;
  --bg-deep: #050b14;
  --surface: rgba(10, 19, 31, 0.9);
  --surface-strong: rgba(13, 24, 39, 0.96);
  --line: rgba(179, 197, 223, 0.12);
  --line-strong: rgba(205, 221, 244, 0.18);
  --text: #f2f6fb;
  --muted: #8fa2bb;
  --muted-strong: #ced8e4;
  --accent: #d7a35d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(65, 123, 190, 0.15), transparent 36%),
    radial-gradient(circle at 84% 0%, rgba(215, 163, 93, 0.1), transparent 24%),
    linear-gradient(180deg, #08111b 0%, #07101a 32%, #050b14 100%);
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 18%),
    radial-gradient(circle at 50% 20%, rgba(122, 192, 255, 0.04), transparent 34%);
  opacity: 0.75;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(122, 192, 255, 0.58);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100vw - 34px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 20, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  position: relative;
}

.header-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17, 31, 49, 0.92), rgba(8, 16, 28, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f5d9b1;
  font-size: 0.8rem;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 650;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.header-nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.header-menu {
  position: relative;
}

.header-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, color 140ms ease;
}

.header-menu summary::-webkit-details-marker {
  display: none;
}

.header-menu summary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.header-menu summary:focus-visible {
  outline: 2px solid #7ac0ff;
  outline-offset: 3px;
}

.header-menu[open] summary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.header-menu-panel {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  min-width: 220px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 13, 23, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  box-sizing: border-box;
  z-index: 20;
}

.header-menu-panel a {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted-strong);
  box-sizing: border-box;
}

.header-menu-panel a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

main {
  padding: 44px 0 86px;
}

.signin-hero {
  padding: 28px 0 0;
}

.signin-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.signin-card,
.trust-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 39, 0.96), rgba(8, 16, 28, 0.94));
  box-shadow: var(--shadow);
}

.signin-card::before,
.trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 44%);
  pointer-events: none;
}

.signin-card::after,
.trust-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.signin-card {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(122, 192, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(13, 24, 39, 0.97), rgba(8, 16, 28, 0.94));
}

.trust-card {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(215, 163, 93, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(11, 21, 35, 0.97), rgba(8, 15, 25, 0.94));
}

.card-head,
.trust-head {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0;
  color: #d8b27f;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.96;
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.02;
  max-width: 14ch;
}

.lead {
  color: var(--muted-strong);
  font-size: 1.08rem;
  max-width: 36ch;
}

.trust-head p {
  color: var(--muted);
  max-width: 44ch;
}

.signin-form {
  display: grid;
  gap: 20px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 9px;
  padding: 16px 16px 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 11, 20, 0.64);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.password-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-field-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.password-toggle {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.field input::placeholder {
  color: #7587a0;
}

.field input:focus-visible {
  border-color: rgba(122, 192, 255, 0.3);
  background: rgba(7, 13, 23, 0.86);
}

.primary-button {
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #dfb16e, #c68e48);
  color: #1f1608;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
  filter: brightness(1.02);
}

.secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.secondary-links a:hover {
  color: var(--text);
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-item {
  position: relative;
  padding: 18px 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014));
}

.trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(215, 163, 93, 0.78), rgba(122, 192, 255, 0.24));
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.98rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (min-width: 760px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .signin-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  }
}

@media (max-width: 759px) {
  .header-shell {
    min-height: 68px;
  }

  .header-nav {
    display: flex !important;
  }

  main {
    padding-top: 28px;
  }

  .signin-card,
  .trust-card {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .field {
    padding: 15px;
  }

  .primary-button {
    width: 100%;
  }
}
