/* Mobile login based on the approved Harir Mobl red-and-white concept.
   Scoped to the login shell: desktop and other auth pages retain their design. */
.hd-login-form-card {display:contents}
.hd-login-mobile-tag,
.hd-login-sofa-art {display:none}

@media (max-width:700px) {
  .hd-auth-layout {
    height:100dvh;
    min-height:100dvh;
    overflow-y:auto;
    overflow-x:hidden;
    background:#fff;
  }
  .hd-auth-shell {
    isolation:isolate;
    position:relative;
    box-sizing:border-box;
    min-height:100dvh;
    width:100%;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:stretch;
    padding:15px max(14px,env(safe-area-inset-right,0px))
            max(20px,env(safe-area-inset-bottom,0px))
            max(14px,env(safe-area-inset-left,0px));
    background:linear-gradient(140deg,#fff 0%,#fff 71%,#fcfafb 100%);
  }
  .hd-auth-shell::before {
    content:"";
    position:absolute;
    z-index:0;
    pointer-events:none;
    top:0;
    left:0;
    width:min(48vw,220px);
    height:135px;
    background:linear-gradient(135deg,#a9102d 12%,#d95c70 63%,#f8dfe4 100%);
    clip-path:polygon(0 0,100% 0,0 100%);
    opacity:.95;
  }
  .hd-auth-shell::after {
    content:"";
    position:absolute;
    z-index:0;
    pointer-events:none;
    right:-95px;
    bottom:-106px;
    width:115%;
    height:215px;
    border-radius:65% 0 0 0;
    background:linear-gradient(115deg,#f9e9ed 5%,#d83c57 44%,#9c0e2d 95%);
    transform:rotate(-9deg);
    box-shadow:0 -16px 0 rgba(165,30,52,.035);
  }
  .hd-login-sofa-art {
    display:block;
    position:absolute;
    z-index:0;
    pointer-events:none;
    top:65px;
    left:-90px;
    width:min(66vw,255px);
    height:auto;
    opacity:.52;
    filter:saturate(.8);
  }
  .hd-auth-shell .hd-login-panel {
    position:relative;
    z-index:1;
    flex:1 1 100%;
    max-width:460px;
    min-height:calc(100dvh - 35px);
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .hd-auth-shell .hd-login-panel-content {
    position:relative;
    box-sizing:border-box;
    flex:0 1 100%;
    width:100%;
    max-width:390px;
    margin:auto;
    padding:25px 0 22px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .hd-auth-shell .hd-login-brand {
    display:flex;
    flex-direction:column;
    gap:5px;
    align-items:center;
    justify-content:center;
    text-align:center;
    margin:0 0 9px;
    white-space:nowrap;
  }
  .hd-auth-shell .hd-login-brand .hd-login-brand-logo {
    box-sizing:border-box;
    width:70px;
    height:70px;
    flex:0 0 70px;
    padding:6px;
    border:1px solid #eae6e8;
    border-radius:18px;
    background:#fff;
    box-shadow:0 6px 19px rgba(26,25,30,.08);
  }
  .hd-auth-shell .hd-login-brand strong {
    font-size:24px;
    line-height:1.35;
    color:#1f222a;
    font-weight:900;
  }
  .hd-auth-shell .hd-login-brand .hd-login-brand-sub-mobile {
    display:block;
    direction:ltr;
    text-align:center;
    font-family:Arial,sans-serif;
    font-size:10px;
    letter-spacing:2.4px;
    color:#777d87;
  }
  .hd-auth-shell .hd-login-mobile-tag {
    display:table;
    margin:0 auto 17px;
    padding:5px 16px;
    border-radius:99px;
    background:#fcecef;
    color:#92263e;
    font-size:11px;
    font-weight:800;
  }
  .hd-auth-shell .hd-login-form-card {
    box-sizing:border-box;
    display:block;
    padding:23px 18px 19px;
    border:1px solid #eae1e5;
    border-radius:21px;
    background:rgba(255,255,255,.975);
    box-shadow:0 12px 32px rgba(44,32,39,.10);
  }
  .hd-auth-shell .hd-login-intro {
    text-align:center;
    margin:0 0 18px;
  }
  .hd-auth-shell .hd-login-intro h1 {
    font-size:23px;
    font-weight:900;
    line-height:1.45;
    margin:0 0 4px;
    color:#1d212a;
  }
  .hd-auth-shell .hd-login-intro .hd-login-intro-mobile {
    display:block;
    margin:0;
    font-size:11px;
    line-height:1.9;
    color:#737b86;
  }
  .hd-auth-shell .hd-login-form {gap:12px}
  .hd-auth-shell .hd-login-field > label {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    padding:0;
    margin:0;
    border:0;
  }
  .hd-auth-shell .hd-login-input {
    height:51px;
    border:1px solid #d6d8df;
    border-radius:13px;
    background:#fff;
    box-shadow:none;
  }
  .hd-auth-shell .hd-login-input:focus-within {
    border-color:#a92c44;
    box-shadow:0 0 0 2px rgba(169,44,68,.13);
  }
  .hd-auth-shell .hd-login-input > svg {color:#808690}
  .hd-auth-shell .hd-login-input input {
    font-size:16px;
    color:#262a32;
  }
  .hd-auth-shell .hd-login-input input::placeholder {color:#8f939c;opacity:1}
  .hd-auth-shell .hd-login-submit {
    height:51px;
    margin-top:4px;
    border-radius:12px;
    background:linear-gradient(100deg,#b60d30,#a72540);
    color:#fff;
    font-size:15px;
    font-weight:800;
    box-shadow:0 8px 22px rgba(168,35,62,.16);
  }
  .hd-auth-shell .hd-login-submit:hover {background:#911b34}
  .hd-auth-shell .hd-login-security {
    display:flex;
    align-items:center;
    justify-content:center;
    margin:16px 0 0;
    gap:7px;
    font-size:11px;
    line-height:1.7;
    color:#7a7e88;
    text-align:center;
  }
  .hd-auth-shell .hd-login-security svg {
    width:17px;
    height:17px;
    flex:0 0 17px;
  }
  .hd-auth-shell .hd-pwa-login-action,
  .hd-auth-shell .hd-login-footer {display:none}
  .hd-auth-shell .hd-login-error {margin-bottom:12px}
}
@media (max-width:370px) {
  .hd-auth-shell .hd-login-brand .hd-login-brand-logo {width:58px;height:58px;flex-basis:58px}
  .hd-auth-shell .hd-login-brand strong {font-size:21px}
  .hd-auth-shell .hd-login-mobile-tag {margin-bottom:12px}
  .hd-auth-shell .hd-login-form-card {padding:18px 13px 16px;border-radius:18px}
  .hd-auth-shell .hd-login-intro h1 {font-size:21px}
  .hd-auth-shell .hd-login-intro {margin-bottom:14px}
}
@media (max-width:700px) and (max-height:720px) {
  .hd-auth-shell .hd-login-panel-content {padding:10px 0 16px}
  .hd-auth-shell .hd-login-brand .hd-login-brand-logo {width:56px;height:56px;flex-basis:56px}
  .hd-auth-shell .hd-login-brand strong {font-size:21px}
  .hd-auth-shell .hd-login-mobile-tag {margin-bottom:9px;padding:3px 12px}
  .hd-auth-shell .hd-login-form-card {padding-block:15px}
  .hd-auth-shell .hd-login-intro {margin-bottom:11px}
  .hd-auth-shell .hd-login-intro h1 {font-size:20px}
  .hd-auth-shell .hd-login-input {height:46px}
  .hd-auth-shell .hd-login-submit {height:46px}
  .hd-auth-shell .hd-login-security {margin-top:9px}
}
@media (max-width:700px) and (prefers-reduced-motion:reduce) {
  .hd-auth-shell .hd-login-submit {transition:none}
}
