.login-top { justify-content: space-between; gap: 12px; }
.login-top > .button { min-height: 42px; font-size: 14px; }
.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100svh - 86px);
  padding-block: clamp(26px, 5vw, 76px);
}
.login-card {
  width: min(100%, 490px);
  justify-self: center;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 48px #3510440d;
}
.login-heading h1 {
  margin: 0;
  color: var(--plum);
  font-weight: 900;
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.5;
}
.login-heading h1::after {
  content: "";
  display: block;
  width: 76px;
  margin-block: 5px 14px;
  border-top: 4px solid var(--orange);
  border-radius: 50%;
  transform: rotate(-3deg);
}
.login-heading p { margin: 0; color: var(--muted); line-height: 1.9; }
.login-form { display: grid; gap: 10px; margin-block-start: 26px; }
.login-form label { font-weight: 720; }
.login-input {
  width: 100%;
  min-height: 52px;
  padding: 8px 15px;
  border: 1px solid #cfc3d3;
  border-radius: 13px;
  background: #fcf9fd;
  color: var(--ink);
  font-size: 18px;
}
.login-input:focus { outline: 2px solid var(--plum); outline-offset: 2px; }
.otp-input { text-align: center; letter-spacing: .35em; }
.login-form > .button { margin-block-start: 8px; min-height: 52px; }
.login-retry { justify-self: center; padding: 10px 5px; color: var(--plum); text-decoration: underline; }
.login-error { margin: 2px 0; color: #972d26; background: #fff2ed; border-radius: 10px; padding: 8px 12px; }
.login-visual {
  align-self: stretch;
  min-height: 430px;
  border-radius: 28px;
  background: linear-gradient(150deg, #faf5fb, #fcf4ef);
  overflow: hidden;
}
.login-visual .mockups { height: 100%; }
.login-visual .front { top: 10%; }
.login-visual .back { top: 19%; }
@media (max-width: 760px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: clamp(26px, 9vw, 56px); }
  .login-visual { display: none; }
  .login-top > .button { padding-inline: 10px; font-size: 12px; }
}
