.sign-in-page {
  display: grid;
  min-height: 100vh;
  margin: 0;
  padding: clamp(16px, 4vw, 56px);
  place-items: center;
  background: #f3f6f9;
  color: #18364a;
}

.sign-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(8, 29, 46, 0.13);
}

.sign-in__photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  background: #efc875;
}

.sign-in__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.sign-in__panel {
  align-self: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
}

.sign-in__brand { display: inline-block; }
.sign-in__brand img { display: block; max-width: 100%; height: auto; }

.sign-in__eyebrow {
  margin: 28px 0 6px;
  color: #17637a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sign-in h1 {
  margin: 0 0 24px;
  color: #18364a;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.sign-in a:not(.sign-in__brand) { color: #145d72; text-decoration: underline; }
.sign-in :focus-visible { outline: 3px solid #17637a; outline-offset: 3px; }
.sign-in form .field { margin-bottom: 14px; }
.sign-in form label { color: #294354; font-weight: 600; }

.sign-in form :is(input[type="email"], input[type="text"], input[type="password"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #8298a4;
  border-radius: 7px;
  background: #fff;
  color: #18364a;
  font-size: 1rem;
}

.sign-in form .btn-toolbar { display: block; }
.sign-in form :is(input[type="submit"], button[type="submit"]) {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: #17637a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.sign-in form :is(input[type="submit"], button[type="submit"]):hover { background: #104d61; }

.sign-in__help {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid #287c91;
  border-radius: 0 8px 8px 0;
  background: #edf5f8;
}
.sign-in__help h2 { margin: 0 0 4px; color: #294354; font-size: 1rem; }
.sign-in__register { margin: 20px 0 0; }

@media (max-width: 700px) {
  .sign-in { grid-template-columns: minmax(0, 1fr); max-width: 500px; }
  .sign-in__photo { height: clamp(105px, 28vw, 160px); border-radius: 16px 16px 0 0; }
  .sign-in__photo img { object-position: center 32%; }
  .sign-in__panel { padding: 24px 20px; }
  .sign-in__eyebrow { margin-top: 18px; }
}

.register-page .sign-in {
  max-width: 1120px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.register__aside {
  min-width: 0;
  border-radius: 16px 0 0 16px;
  background: #edf5f8;
}

.register__visual {
  position: sticky;
  top: 24px;
  height: clamp(480px, 85vh, 840px);
  overflow: hidden;
  border-radius: 16px 0 16px 0;
}

.register__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.register__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 90px 32px 32px;
  background: linear-gradient(transparent, rgba(8, 29, 46, 0.92));
}

.register__caption p { margin: 0; color: #fff; }
.register__caption .register__caption-title {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.register-page h1 { margin-bottom: 12px; }
.register__intro { color: #526977; line-height: 1.6; }
.register__login { margin: 12px 0 28px; }
.register-page .register__section-title {
  margin: 28px 0 18px;
  color: #294354;
  font-size: 1.05rem;
  font-weight: 700;
}

.register-page form .alert-info {
  border: 0;
  border-left: 3px solid #287c91;
  border-radius: 0 8px 8px 0;
  background: #edf5f8;
  color: #294354;
  font-size: 0.9rem;
  line-height: 1.6;
}

.register-page form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #8298a4;
  border-radius: 7px;
  background: #fff;
  color: #18364a;
  font-size: 1rem;
}

.register-page form .description {
  display: block;
  margin-top: 5px;
  color: #526977;
  font-size: 0.85rem;
}

.register-page form .composite { margin-bottom: 0; }
.register-page form .field.checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0 12px;
  padding: 0;
}

.register-page form input[type="checkbox"] {
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  opacity: 1;
  accent-color: #17637a;
  cursor: pointer;
}

.register-page form .checkbox label {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

.register-page form .checkbox label::before,
.register-page form .checkbox label::after { display: none; }
.register-page form .checkbox .message { grid-column: 2; }

.register__next {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #d5e0e6;
  color: #526977;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 850px) {
  .register-page .sign-in { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .register__aside { border-radius: 16px 16px 0 0; }
  .register__visual { position: relative; top: auto; height: 160px; border-radius: 16px 16px 0 0; }
  .register__visual > img { object-position: center 25%; }
  .register__caption { display: none; }
}
