.app-modal--login {
  width: min(1080px, calc(100vw - 1.5rem));
  height: min(720px, calc(100dvh - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #f2f6f5;
  overflow: hidden;
  color: #10211d;
}
.lg-panel {
  position: relative;
  height: 100%;
  padding: 0;
}
.lg-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5f726d;
  cursor: pointer;
}
.lg-close:hover { background: #e6f4f0; color: #0a4a3d; }
.lg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.login-shell {
  --g: #0e7c66;
  --g-d: #0a4a3d;
  --g-l: #e6f4f0;
  --g-m: #bfe3da;
  --ink: #10211d;
  --mute: #5f726d;
  --line: #dfe8e4;
  --bg: #f2f6f5;
  --red: #c9433f;
  --red-l: #fde8e7;
  --amber: #9a6700;
  --amber-l: #fff1cc;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--ink);
  line-height: 1.8;
  text-align: right;
}
.login-shell button,
.login-shell input,
.login-shell select { font: inherit; color: inherit; }
.login-shell button { cursor: pointer; border: 0; background: none; }
.login-shell svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.login-shell .lg-side {
  background: linear-gradient(150deg, #0a4a3d 0%, #0d6a58 65%, #0e7c66 100%);
  color: #fff;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.login-shell .lg-side::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  bottom: -160px;
  right: -140px;
}
.login-shell .lg-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; position: relative; }
.login-shell .lg-logo b {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff;
  color: var(--g);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.login-shell .lg-side h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.5; margin: 0 0 14px; position: relative; }
.login-shell .lg-lead { color: #cfe5df; max-width: 420px; position: relative; }
.login-shell .lg-pts { list-style: none; display: grid; gap: 14px; margin-top: 28px; position: relative; padding: 0; }
.login-shell .lg-pts li { display: flex; gap: 12px; align-items: flex-start; }
.login-shell .lg-pts i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  flex: none;
  color: #8fe3c8;
}
.login-shell .lg-pts b { display: block; line-height: 1.5; }
.login-shell .lg-pts span { color: #bfe0d6; font-size: 14px; line-height: 1.6; display: block; }
.login-shell .lg-mock {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  max-width: 300px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  margin-top: 30px;
}
.login-shell .lg-mock small { color: var(--mute); font-size: 12px; display: block; line-height: 1.5; }
.login-shell .lg-mock-prices { display: flex; gap: 20px; margin: 6px 0 8px; }
.login-shell .lg-mock-prices b { font-size: 17px; color: var(--g-d); }
.login-shell .lg-chip {
  display: inline-block;
  background: var(--g-l);
  color: var(--g);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 99px;
  padding: 0 11px;
}
.login-shell .lg-foot { font-size: 12.5px; color: #a9d3c7; position: relative; }
.login-shell .lg-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  position: relative;
  min-height: 0;
  overflow: auto;
  background: var(--bg);
}
.login-shell .lg-top {
  position: absolute;
  top: 18px;
  inset-inline: 18px;
  display: none;
  justify-content: space-between;
  align-items: center;
}
.login-shell .lg-top .lg-logo { color: var(--g-d); font-size: 19px; }
.login-shell .lg-top .lg-logo b { background: var(--g); color: #fff; width: 30px; height: 30px; font-size: 14px; }
.login-shell .lg-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: 0 18px 40px -26px rgba(10, 74, 61, .4);
}
.login-shell .lg-prog { display: flex; gap: 6px; margin-bottom: 22px; }
.login-shell .lg-prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.login-shell .lg-prog i.on { background: var(--g); }
.login-shell .lg-prog.is-hidden { visibility: hidden; }
.login-shell .lg-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mute);
  font-size: 13.5px;
  margin-bottom: 12px;
  padding: 2px 0;
}
.login-shell .lg-back svg { width: 16px; height: 16px; transform: scaleX(-1); }
.login-shell .lg-back:hover { color: var(--g); }
.login-shell h2 { font-size: 23px; font-weight: 800; color: var(--g-d); line-height: 1.5; margin: 0; }
.login-shell .lg-sub { color: var(--mute); font-size: 14.5px; margin: 4px 0 22px; }
.login-shell .lg-step { display: none; }
.login-shell .lg-step.on { display: block; animation: lg-in .3s ease; }
@keyframes lg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.login-shell .lg-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.login-shell .lg-label em { font-style: normal; font-weight: 400; color: var(--mute); margin-inline-start: 6px; font-size: 12.5px; }
.login-shell .lg-inp {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 16px;
  background: #fff;
  outline: 0;
}
.login-shell .lg-inp:focus { border-color: var(--g); box-shadow: 0 0 0 4px var(--g-l); }
.login-shell .lg-inp.err { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-l); }
.login-shell .lg-ph {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  direction: ltr;
}
.login-shell .lg-ph:focus-within { border-color: var(--g); box-shadow: 0 0 0 4px var(--g-l); }
.login-shell .lg-ph.err { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-l); }
.login-shell .lg-ph span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--bg);
  color: var(--mute);
  font-weight: 700;
  font-size: 15px;
  border-right: 1.5px solid var(--line);
}
.login-shell .lg-ph input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 14px;
  font-size: 19px;
  letter-spacing: 1px;
  direction: ltr;
  text-align: left;
  min-width: 0;
  font-weight: 500;
  background: #fff;
}
.login-shell .lg-ph input::placeholder { color: #b3c0bc; letter-spacing: 1px; }
.login-shell .lg-msg { min-height: 22px; font-size: 13px; margin-top: 6px; color: var(--red); }
.login-shell .lg-msg-center { text-align: center; }
.login-shell .lg-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--g);
  color: #fff;
  border-radius: 14px;
  padding: 13px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 6px;
  text-decoration: none;
}
.login-shell .lg-btn:hover:not(:disabled) { background: var(--g-d); }
.login-shell .lg-btn:disabled { background: #c5d3cf; cursor: not-allowed; }
.login-shell .lg-btn.ld { pointer-events: none; opacity: .85; }
.login-shell .lg-sp {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
}
.login-shell .lg-btn.ld .lg-sp { display: block; animation: lg-rot .7s linear infinite; }
@keyframes lg-rot { to { transform: rotate(360deg); } }
.login-shell .lg-legal { font-size: 12.5px; color: var(--mute); margin-top: 16px; text-align: center; line-height: 1.9; }
.login-shell .lg-legal a { color: var(--g); font-weight: 700; }
.login-shell .lg-otp { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 6px 0 4px; }
.login-shell .lg-otp input {
  width: 100%;
  max-width: 56px;
  height: 62px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  outline: 0;
  padding: 0;
  background: #fff;
}
.login-shell .lg-otp input:focus { border-color: var(--g); box-shadow: 0 0 0 4px var(--g-l); }
.login-shell .lg-otp input.fill { border-color: var(--g-m); background: var(--g-l); }
.login-shell .lg-otp.err input { border-color: var(--red); background: var(--red-l); }
.login-shell .lg-otp.lg-shake { animation: lg-sh .4s; }
@keyframes lg-sh {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.login-shell .lg-resend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-top: 10px;
  color: var(--mute);
}
.login-shell .lg-resend button { color: var(--g); font-weight: 700; }
.login-shell .lg-resend button:disabled { color: #9db0ab; cursor: not-allowed; }
.login-shell .lg-roles { display: grid; gap: 12px; }
.login-shell .lg-role {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  text-align: right;
  width: 100%;
  background: #fff;
}
.login-shell .lg-role:hover { border-color: var(--g-m); }
.login-shell .lg-role.on { border-color: var(--g); background: var(--g-l); box-shadow: 0 0 0 4px rgba(14, 124, 102, .12); }
.login-shell .lg-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--g);
  flex: none;
}
.login-shell .lg-role.on .lg-ic { background: #fff; }
.login-shell .lg-role b { display: block; font-size: 16.5px; line-height: 1.5; }
.login-shell .lg-role small { color: var(--mute); font-size: 13.5px; line-height: 1.7; display: block; margin-top: 2px; }
.login-shell .lg-rd {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
}
.login-shell .lg-role.on .lg-rd { border-color: var(--g); background: var(--g); }
.login-shell .lg-rd::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; }
.login-shell .lg-role.on .lg-rd::after { opacity: 1; }
.login-shell .lg-note {
  display: flex;
  gap: 8px;
  background: var(--amber-l);
  color: var(--amber);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.7;
}
.login-shell .lg-note svg { width: 17px; height: 17px; margin-top: 3px; }
.login-shell .lg-hide { display: none !important; }
.login-shell .lg-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login-shell .lg-fld { margin-bottom: 14px; }
.login-shell select.lg-inp {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f726d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center;
}
.login-shell .lg-ok { text-align: center; padding: 8px 0; }
.login-shell .lg-ok p { color: var(--mute); margin: 4px 0 20px; }
.login-shell .lg-tick {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--g-l);
  color: var(--g);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  animation: lg-pop .4s;
}
.login-shell .lg-tick svg { width: 36px; height: 36px; stroke-width: 2.6; }
@keyframes lg-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.login-shell .lg-link { display: block; text-align: center; margin-top: 12px; color: var(--g); font-weight: 700; font-size: 14px; }

@media (max-width: 900px) {
  .app-modal--login { height: auto; max-height: calc(100dvh - 1rem); }
  .login-shell { grid-template-columns: 1fr; }
  .login-shell .lg-side { display: none; }
  .login-shell .lg-top { display: flex; }
  .login-shell .lg-main { padding-top: 72px; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .login-shell .lg-card { padding: 24px 18px; border-radius: 18px; }
  .login-shell .lg-names { grid-template-columns: 1fr; }
}
