@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url('assets/fonts/sora-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  background: #edf2f8;
  color: #15243b;
  font: 400 15px/1.55 Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; }
:focus-visible { outline: 3px solid #0b88a5; outline-offset: 3px; }

.login {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  width: min(900px, calc(100% - 40px));
  margin: clamp(24px, 12vh, 112px) auto 24px;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px #172c4b16;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 5vw, 48px);
  background: radial-gradient(ellipse at 85% 0%, #275b76, transparent 58%), linear-gradient(130deg, #101b2d, #19334d);
  color: #e6eef9;
}

.login-brand img {
  align-self: flex-start;
  width: 140px;
  max-width: 100%;
  padding: 10px;
  border-radius: 9px;
  background: #fff;
}

.login-label {
  margin-bottom: 8px;
  color: #246779;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.login-brand .login-label { color: #a9e5ed; }
.login h1, .login h2 { font-family: Sora, sans-serif; line-height: 1.2; letter-spacing: -.045em; }
.login h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 42px); }
.login h2 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 34px); }

.login-local {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid #56758d;
  border-radius: 8px;
  color: #d5faff;
  font-size: 12px;
  font-weight: 600;
}

.login-local span { width: 7px; height: 7px; border-radius: 50%; background: #65d8e5; }
.login-access { padding: clamp(24px, 5vw, 48px); }
.login-access header > p:last-child { color: #53647b; }
#login-form { display: grid; gap: 8px; margin-top: 23px; }
#login-form label { font-size: 14px; font-weight: 650; }
#login-form label[for="login-password"] { margin-top: 6px; }

#login-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #acbbcd;
  border-radius: 8px;
  background: #f8fafd;
  color: #15243b;
  font-size: 16px;
}

.login-password { display: flex; align-items: center; gap: 6px; }
.login-password button {
  min-height: 44px;
  padding-inline: 9px;
  border: 1px solid #acbbcd;
  border-radius: 8px;
  color: #24456b;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}
.login-password button:hover { background: #edf6fb; }

.login-submit {
  min-height: 46px;
  margin-top: 12px;
  padding: 9px 16px;
  border: 1px solid #2354c4;
  border-radius: 9px;
  color: #fff;
  background: #2657c8;
  font-weight: 700;
}
.login-submit:hover:not(:disabled) { background: #1b43a6; }
.login-submit:disabled { background: #48688c; }

.login-error {
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #edc9d3;
  border-radius: 7px;
  background: #fff1f4;
  color: #842d48;
  font-size: 13px;
}

.login-access-notice {
  padding: 12px 14px;
  border: 1px solid #b6dbe8;
  border-radius: 8px;
  background: #eef8fc;
  color: #14506a;
  font-size: 14px;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .login { grid-template-columns: 1fr; width: min(460px, calc(100% - 24px)); margin-top: 12px; }
  .login-brand { gap: 16px; }
  .login-brand img { width: 108px; padding: 8px; }
  .login-brand p:not(.login-label):not(.login-local) { font-size: 14px; }
}
