.qh-login {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--blue-dark);
    padding: clamp(10px, 1.5vw, 20px);
}

.qh-login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    color: #fff;
    padding: clamp(22px, 3.2vw, 48px);
}

.qh-login-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.qh-login-logo { width: clamp(114px, 11vw, 152px); filter: brightness(0) invert(1); }
.qh-login-back { font-weight: 600; font-size: .86rem; color: #fff; }
.qh-login-back:hover { text-decoration: underline; }
.qh-login-back:focus-visible, .qh-login-dots button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.qh-login-story { max-width: 46ch; }
.qh-login-story [data-login-slide] { min-height: 132px; }
.qh-login-story [data-login-slide]:not([hidden]) { animation: qh-login-enter 280ms ease-out both; }
.qh-login-story h2 { font-size: clamp(1.85rem, 3vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.qh-login-story p { max-width: 38ch; color: var(--blue-soft); margin-top: 10px; font-size: .95rem; }

.qh-login-dots {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 1px 4px;
    border-radius: 20px;
    background: rgb(255 255 255 / 12%);
}
.qh-login-dots[hidden], .qh-login-password-toggle[hidden] { display: none; }
.qh-login-dots button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 26px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: transparent;
    cursor: pointer;
}
.qh-login-dots button::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 8px;
    background: rgb(255 255 255 / 65%);
    transition: width 220ms ease, background-color 220ms ease;
}
.qh-login-dots button[aria-pressed="true"]::before { width: 13px; background: #fff; }

.qh-login-main {
    display: grid;
    place-items: center;
    min-width: 0;
    border-radius: 14px;
    background: #fff;
    padding: clamp(24px, 4vw, 56px);
}

.qh-login-form { width: 100%; max-width: 350px; animation: qh-login-enter 360ms ease-out both; }
.qh-login-form h1 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); line-height: 1.14; letter-spacing: -.035em; }
.qh-login-intro { margin: 8px 0 20px; color: var(--text-soft); font-size: .92rem; }
.qh-login-form .contact-form { gap: 14px; }
.qh-login-form .form-group { min-width: 0; }
.qh-login-form .form-group input { min-height: 44px; background: #fff; }
.qh-login-password { position: relative; }
.qh-login-password input { width: 100%; padding-right: 76px; }
.qh-login-password-toggle { position: absolute; top: 4px; right: 5px; bottom: 4px; border: 0; border-radius: 6px; padding: 0 8px; background: #fff; color: var(--blue-dark); font-size: .85rem; font-weight: 700; cursor: pointer; }
.qh-login-submit { justify-content: center; min-height: 44px; }
.qh-login-footer { margin-top: 18px; font-size: .85rem; color: var(--text-soft); }
.qh-login-footer a { color: var(--blue-dark); font-weight: 700; }

@keyframes qh-login-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .qh-login { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 12px; background: #fff; padding: 28px 20px; }
    .qh-login-brand { padding: 0; }
    .qh-login-brand-header { flex-direction: column; justify-content: center; gap: 14px; }
    .qh-login-logo { width: 150px; filter: none; }
    .qh-login-back { color: var(--blue-dark); }
    .qh-login-story { display: none; }
    .qh-login-main { padding: 14px 0; }
    .qh-login-form { max-width: 340px; }
    .qh-login-form h1, .qh-login-intro, .qh-login-footer { text-align: center; }
    .qh-login-form .form-group input { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .qh-login-form, .qh-login-story [data-login-slide]:not([hidden]) { animation: none; }
    .qh-login-dots button::before { transition: none; }
}

