@media (max-width: 900px) {
  html,body { min-height: 100%; background: #1e292b; }
  .auth-page { min-width: 320px; min-height: 100dvh; overflow-x: hidden; }
  .auth-shell { display: block; min-height: 100dvh; }
  .auth-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100dvh;
    padding: max(176px,24vh) 0 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 82% 9%,rgba(45,210,188,.2),transparent 27%),
      radial-gradient(circle at 10% 24%,rgba(45,210,188,.09),transparent 24%),
      linear-gradient(155deg,#192326,#293b3d 70%,#314b49);
  }
  .auth-panel::before,.auth-panel::after { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; content: ''; pointer-events: none; }
  .auth-panel::before { top: -115px; right: -120px; width: 330px; height: 330px; }
  .auth-panel::after { top: 90px; right: 38px; width: 110px; height: 110px; }
  .auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 70dvh;
    padding: 31px 24px calc(27px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 28px 28px 0 0;
    background: #fbfcfc;
    box-shadow: 0 -18px 50px rgba(5,15,17,.19);
  }
  .auth-card::before { display: block; width: 43px; height: 4px; margin: -17px auto 25px; border-radius: 5px; background: #dfe5e6; content: ''; }
  .auth-mobile-brand {
    position: absolute;
    top: -138px;
    left: 24px;
    display: flex;
    align-items: center;
    width: calc(100% - 48px);
    gap: 15px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .auth-mobile-app-icon {
    display: grid;
    flex: 0 0 66px;
    place-items: center;
    width: 66px;
    height: 66px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
    backdrop-filter: blur(8px);
  }
  .auth-mobile-app-icon img { width: 58px; height: 58px; object-fit: cover; transform: scale(1.08); }
  .auth-mobile-brand>span:last-child { min-width: 0; }
  .auth-mobile-brand b { color: #fff; font-size: 24px; letter-spacing: -.7px; }
  .auth-mobile-brand small { margin-top: 7px; color: #a8c0bf; font-size: 8px; letter-spacing: 2px; }
  .auth-mobile-brand small::before { background: #43d1bd; }
  .auth-card__header { margin-bottom: 27px; }
  .auth-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 1.3px; }
  .auth-kicker::before { width: 6px; height: 6px; border-radius: 50%; background: #19b7a2; box-shadow: 0 0 0 4px rgba(25,183,162,.1); content: ''; }
  .auth-card h2 { margin: 12px 0 8px; color: #202c31; font-size: 27px; letter-spacing: -.8px; }
  .auth-card__header p { color: #7e898f; font-size: 12px; line-height: 1.55; }
  .auth-form>label { margin-bottom: 8px; color: #536167; font-size: 10px; letter-spacing: .15px; }
  .auth-input { margin-bottom: 18px; }
  .auth-input input {
    height: 55px;
    padding: 0 47px;
    border-color: #dce3e5;
    border-radius: 13px;
    background: #fff;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(30,46,49,.025);
  }
  .auth-input>svg { left: 15px; width: 19px; height: 19px; }
  .password-toggle { right: 10px; width: 38px; height: 38px; }
  .auth-submit {
    height: 55px;
    margin-top: 8px;
    padding: 0 19px;
    border-radius: 13px;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(22,184,165,.22);
  }
  .auth-security { margin-top: 25px; padding-top: 20px; }
  .auth-security>span { flex: 0 0 31px; width: 31px; height: 31px; }
  .auth-alert { border-radius: 11px; line-height: 1.45; }
}

@media (max-width: 520px) {
  .auth-panel { align-items: flex-end; padding-top: max(170px,23vh); background: radial-gradient(circle at 78% 8%,rgba(45,210,188,.19),transparent 28%),linear-gradient(155deg,#192326,#2d4545); }
  .auth-card { min-height: 72dvh; padding-right: 21px; padding-left: 21px; }
  .auth-mobile-brand { left: 21px; width: calc(100% - 42px); }
}

@media (max-width: 370px), (max-height: 690px) {
  .auth-panel { padding-top: 145px; }
  .auth-card { min-height: auto; padding-top: 25px; }
  .auth-card::before { margin-bottom: 17px; }
  .auth-mobile-brand { top: -116px; }
  .auth-mobile-app-icon { flex-basis: 56px; width: 56px; height: 56px; border-radius: 15px; }
  .auth-mobile-app-icon img { width: 50px; height: 50px; }
  .auth-mobile-brand b { font-size: 21px; }
  .auth-card__header { margin-bottom: 20px; }
  .auth-card h2 { font-size: 24px; }
  .auth-input { margin-bottom: 14px; }
  .auth-input input,.auth-submit { height: 51px; }
  .auth-security { margin-top: 19px; padding-top: 16px; }
}

@media (display-mode: standalone) and (max-width: 900px) {
  .auth-panel { padding-top: calc(max(176px,24vh) + env(safe-area-inset-top)); }
}
