:root {
  color-scheme: light;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #222226;
  background: #faf9f7;
  font-synthesis: none;
}

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

.login-layout {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(310px, .92fr) minmax(420px, 1.08fr);
}

.login-identity {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 96px clamp(32px, 6vw, 104px) 185px;
  overflow: hidden;
  color: #faf9f7;
  background: radial-gradient(ellipse at 56% 88%, #52251a 0%, #2b1c1a 37%, #19191d 74%);
}

.login-brand {
  position: absolute;
  top: clamp(26px, 5vh, 58px);
  left: clamp(32px, 6vw, 104px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand img { flex: none; border-radius: 11px; }
.login-brand strong { display: block; font-size: 27px; line-height: .98; letter-spacing: -.07em; }
.login-brand strong span { color: #ff8b4d; }
.login-brand small {
  display: block;
  margin-top: 6px;
  color: #c3bbba;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.login-story { position: relative; z-index: 1; max-width: 550px; }
.login-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffab7f;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.login-eyebrow span { width: 7px; height: 7px; border-radius: 100%; background: #ff8144; box-shadow: 0 0 0 4px #f76b2738; }
.login-story-title {
  margin: 17px 0 15px;
  font-size: clamp(31px, 4.1vw, 62px);
  line-height: 1.04;
  font-weight: 740;
  letter-spacing: -.065em;
}

.login-story-text { max-width: 345px; color: #e1d5d0; font-size: 15px; line-height: 1.65; }
.login-art {
  position: absolute;
  z-index: -1;
  right: -11%;
  bottom: clamp(16px, 5vh, 66px);
  width: min(680px, 126%);
  height: clamp(130px, 28vh, 240px);
  background: url("/hero.svg") center / contain no-repeat;
}

.login-main {
  display: grid;
  min-width: 0;
  align-items: center;
  justify-items: center;
  padding: clamp(26px, 6vw, 96px);
}

.login-panel {
  width: 100%;
  max-width: 470px;
  padding: clamp(25px, 3.5vw, 48px);
  border: 1px solid #e8e2dd;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 18px 52px #2620200b, 0 2px 5px #26202006;
}

.login-access {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid #f6dbcd;
  border-radius: 8px;
  color: #994017;
  background: #fff4ed;
  font-size: 12px;
  font-weight: 660;
}

h1 { margin-top: 15px; font-size: clamp(30px, 4vw, 42px); line-height: 1.13; letter-spacing: -.055em; }
.login-intro { margin: 9px 0 25px; color: #656269; font-size: 15px; line-height: 1.55; }
.login-field + .login-field { margin-top: 15px; }
.login-field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.login-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dcd5d0;
  border-radius: 9px;
  color: #222226;
  background: #fff;
}

.login-field input::placeholder { color: #756e73; }
.login-field input[aria-invalid="true"] { border-color: #b2462d; }
.login-password { position: relative; }
.login-password input { padding-right: 52px; }
.login-toggle {
  position: absolute;
  inset: 4px 4px 4px auto;
  display: grid;
  width: 38px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #635d61;
  background: transparent;
}

.login-toggle:hover { color: #9d3d11; background: #fff0e6; }
.login-toggle:focus-visible { outline-offset: -2px; }
.login-eye-slash { display: none; }
.login-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-remember { display: flex; width: fit-content; align-items: center; gap: 9px; margin: 19px 0 2px; font-size: 14px; font-weight: 650; cursor: pointer; }
.login-remember input { width: 17px; height: 17px; margin: 0; accent-color: #b94611; cursor: pointer; }
.login-hint { margin-left: 26px; color: #676167; font-size: 12px; line-height: 1.45; }
.login-submit {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  border: 1px solid #ed641e;
  border-radius: 9px;
  color: #271409;
  background: #ff8542;
  font-size: 15px;
  font-weight: 730;
}

.login-submit:hover { border-color: #d65618; background: #f7732e; }
.login-error {
  margin: -8px 0 18px;
  padding: 10px 12px;
  border: 1px solid #efc9bb;
  border-radius: 8px;
  color: #8b2c18;
  background: #fff1ec;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(250px, .82fr) minmax(345px, 1.18fr); }
  .login-identity { padding-left: 34px; padding-right: 30px; }
  .login-brand { left: 34px; }
  .login-main { padding: 32px; }
}

@media (max-width: 680px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-identity { min-height: 94px; justify-content: center; padding: 16px 22px; }
  .login-brand { position: relative; inset: auto; }
  .login-brand img { width: 39px; height: 39px; }
  .login-story { display: none; }
  .login-art { right: -5%; bottom: 0; width: min(52%, 260px); height: 100%; opacity: .55; }
  .login-main { align-items: start; padding: 24px 16px 32px; }
  .login-panel { padding: 25px; border-radius: 16px; }
  .login-field input { font-size: 16px; }
}
