* {
  box-sizing: border-box;
}

:root {
  --navy: #071a2f;
  --navy2: #0b2948;
  --blue: #1769a5;
  --gold: #c6a258;
  --text: #142437;
  --muted: #69788a;
  --border: #dce3e9;
  --background: #f5f7f9;
  --danger: #a42c2c;
  --danger-bg: #fff2f2;
  --success: #176b46;
  --success-bg: #eef9f3;
}

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

body {
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
}

button,
input {
  font: inherit;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(390px, 45%)
    minmax(500px, 55%);
}

.identity {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 70px 42px;
  color: white;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(36, 123, 191, .30),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(198, 162, 88, .13),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #061629,
      #09213b 55%,
      #0b2d4e
    );
}

.identity::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -270px;
  top: 18%;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255,255,255,.025),
    0 0 0 140px rgba(255,255,255,.015);
}

.identity-inner,
.identity-footer {
  position: relative;
  z-index: 1;
}

.logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 46px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  color: var(--gold);
  background: rgba(255,255,255,.05);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
}

.overline {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}

.overline.blue {
  color: var(--blue);
}

.identity h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(48px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.subtitle {
  margin-top: 26px;
  color: #d6e4f1;
  font-size: 20px;
  font-weight: 600;
}

.description {
  max-width: 550px;
  margin: 25px 0 32px;
  color: #aebfd0;
  font-size: 16px;
  line-height: 1.7;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 590px;
}

.modules span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #c7d6e4;
  background: rgba(255,255,255,.035);
  font-size: 12px;
}

.identity-footer {
  color: #7e95aa;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.access {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px clamp(42px, 8vw, 130px) 28px;
  background:
    linear-gradient(
      180deg,
      #fff,
      #f8fafb
    );
}

.access-inner {
  width: 100%;
  max-width: 470px;
  margin: auto;
}

.mobile-brand {
  display: none;
}

.heading {
  margin-bottom: 34px;
}

.heading h2 {
  margin: 0 0 11px;
  color: var(--navy);
  font-size: 40px;
  letter-spacing: -.035em;
}

.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.field {
  margin-bottom: 21px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: #293a4c;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: white;
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.field input:focus {
  border-color: #438cc4;
  box-shadow:
    0 0 0 4px rgba(67,140,196,.11);
}

.field input::placeholder {
  color: #a6b0ba;
}

.password-box {
  position: relative;
}

.password-box input {
  padding-right: 88px;
}

.toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.login-button {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  color: white;
  background:
    linear-gradient(
      135deg,
      #0b3155,
      #1769a5
    );
  box-shadow:
    0 12px 28px rgba(23,105,165,.20);
  cursor: pointer;
  font-weight: 750;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.login-button:disabled {
  opacity: .7;
  cursor: wait;
}

.notice {
  margin-bottom: 22px;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.notice.error {
  border: 1px solid #efcaca;
  color: var(--danger);
  background: var(--danger-bg);
}

.notice.success {
  border: 1px solid #c8e5d7;
  color: var(--success);
  background: var(--success-bg);
}

.hidden {
  display: none !important;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.security {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid #e5eaf0;
  color: #788595;
}

.security p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.security-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-bg);
  font-size: 12px;
  font-weight: 900;
}

.access-footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 40px;
  color: #9aa5af;
  font-size: 11px;
}

@media (max-width: 900px) {

  .layout {
    display: block;
  }

  .identity {
    display: none;
  }

  .access {
    min-height: 100vh;
    padding:
      40px
      clamp(24px, 8vw, 70px)
      26px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 58px;
  }

  .mobile-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--gold);
    background: var(--navy);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
  }

  .mobile-brand strong,
  .mobile-brand small {
    display: block;
  }

  .mobile-brand strong {
    color: var(--navy);
    font-size: 15px;
    letter-spacing: .12em;
  }

  .mobile-brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .12em;
  }
}

@media (max-width: 520px) {

  .access {
    padding: 27px 20px 21px;
  }

  .mobile-brand {
    margin-bottom: 45px;
  }

  .heading h2 {
    font-size: 34px;
  }
}
