:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef1f5;
  color: #172033;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  position: relative;
  width: min(100%, 580px);
  padding: 38px;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(28, 39, 60, .10);
}

.language {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #f0f2f6;
}

.language__button {
  border: 0;
  border-radius: 7px;
  padding: 6px 9px;
  background: transparent;
  color: #657086;
  cursor: pointer;
}
.language__button.is-active { background: #fff; color: #172033; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

h1 { margin: 16px 0 8px; font-size: clamp(26px, 5vw, 34px); line-height: 1.15; }
.subtitle { margin: 0 0 28px; color: #69758c; }
form { display: grid; gap: 17px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
small { color: #778298; font-weight: 400; }

input, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cad1dd;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: #172033;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: #4263eb; box-shadow: 0 0 0 3px rgba(66,99,235,.14); }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 70px; }
.password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: 7px;
  background: transparent;
  color: #4263eb;
  cursor: pointer;
}

.submit {
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 11px;
  background: #263b80;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.submit:hover { filter: brightness(1.05); }
.submit:disabled { cursor: wait; opacity: .65; }

.message { display: none; border-radius: 9px; padding: 11px 13px; font-size: 14px; }
.message.is-error { display: block; background: #fff0f0; color: #a61e2d; border: 1px solid #ffc9ce; }
.message.is-success { display: block; background: #ebfbee; color: #166534; border: 1px solid #b2f2bb; }
.login-link { margin: 22px 0 0; text-align: center; color: #69758c; font-size: 14px; }
.login-link a { color: #263b80; font-weight: 700; text-decoration: none; }

@media (max-width: 580px) {
  .page { padding: 12px; align-items: start; }
  .card { margin-top: 12px; padding: 32px 20px 24px; border-radius: 14px; }
  .row { grid-template-columns: 1fr; }
}

.retry-countries {
  width: fit-content;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: #263b80;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.retry-countries[hidden] { display: none; }

.request-reference {
  min-height: 0;
  margin-top: -9px;
  color: #778298;
  font-size: 12px;
  word-break: break-all;
}
