/* Sign-in, join and password pages (customer and pro). */
.hd-auth {
    padding: 48px 0 72px;
    background:
        radial-gradient(circle at 0 0, rgba(99, 91, 255, .08), transparent 40%),
        #f8f9fb;
}

.hd-auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px -30px rgba(16, 24, 40, .25);
}

.hd-auth-form { padding: 44px 48px; }

.hd-auth-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 28px;
    padding: 4px;
    border-radius: 12px;
    background: #f2f4f7;
}

.hd-auth-tabs > * {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #667085;
    border: 0;
    background: transparent;
    transition: background-color .15s ease, color .15s ease;
}

.hd-auth-tabs [aria-selected="true"] { background: #fff; color: var(--color-heading); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.hd-auth-tabs [aria-selected="false"]:hover { color: var(--color-primary); }

/* Customer / pro content switches with the selected tab. */
.hd-auth[data-mode="customer"] [data-show="pro"],
.hd-auth[data-mode="pro"] [data-show="customer"] { display: none !important; }

.hd-auth-side.is-pro {
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .14), transparent 45%),
        linear-gradient(150deg, #0f172a 0%, #1e1b4b 50%, #4338ca 100%);
}

.hd-auth-form h1 { margin: 0; font-size: 30px; line-height: 1.2; color: var(--color-heading); }
.hd-auth-sub { margin: 8px 0 24px; font-size: 15px; color: #667085; }

.hd-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-heading);
    transition: background-color .15s ease, border-color .15s ease;
}

.hd-auth-google:hover { background: #f9fafb; border-color: #98a2b3; color: var(--color-heading); }
.hd-auth-google img { width: 20px; height: 20px; object-fit: contain; }

.hd-auth-or {
    position: relative;
    margin: 22px 0;
    text-align: center;
    font-size: 13px;
    color: #98a2b3;
}

.hd-auth-or::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #eaecf0;
}

.hd-auth-or span { position: relative; padding: 0 12px; background: #fff; }

.hd-auth-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #344054; }

.hd-auth-hint { margin: 6px 0 0; font-size: 12px; color: #98a2b3; }

.hd-auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 18px;
}

.hd-auth-label-row a { font-size: 13px; font-weight: 600; color: var(--color-primary); }

.hd-auth-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 6px 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.hd-auth-field:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(99, 91, 255, .12); }
.hd-auth-field > i { color: #98a2b3; font-size: 17px; }

.hd-auth-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 15px;
    color: var(--color-heading);
    box-shadow: none;
}

.hd-auth-field input:focus { outline: none; }

.hd-auth-eye {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
}

.hd-auth-eye:hover { background: #f2f4f7; }

.hd-auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
}

.hd-auth .hd-auth-check input[type="checkbox"] {
    position: static;
    opacity: 1;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-primary);
}

.hd-auth .hd-auth-check input[type="checkbox"] ~ span::before,
.hd-auth .hd-auth-check input[type="checkbox"] ~ span::after { display: none; }
.hd-auth .hd-auth-check span { padding: 0; }

.hd-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin-top: 24px;
    border: 0;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: background-color .15s ease;
}

.hd-auth-submit:hover { background: #4f46e5; }
.hd-auth-submit:disabled { opacity: .7; }

.hd-auth-switch { margin: 22px 0 0; text-align: center; font-size: 15px; color: #667085; }
.hd-auth-switch a { font-weight: 600; color: var(--color-primary); }

.hd-auth-trust-mobile { display: none; }

/* Brand panel */
.hd-auth-side {
    display: flex;
    flex-direction: column;
    padding: 44px 44px 36px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .16), transparent 45%),
        linear-gradient(150deg, #312e81 0%, #4338ca 55%, #635bff 100%);
    color: #fff;
}

.hd-auth-side-eyebrow {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: 13px;
    font-weight: 600;
}

.hd-auth-side h2 { margin: 18px 0 10px; font-size: 32px; line-height: 1.2; color: #fff; }
.hd-auth-side > p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .82); }

.hd-auth-points { display: grid; gap: 16px; list-style: none; margin: 28px 0 0; padding: 0; }
.hd-auth-points li { display: flex; align-items: center; gap: 14px; margin: 0; }

.hd-auth-points li > span {
    color: #fff;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hd-auth-points strong { display: block; font-size: 15px; color: #fff; }
.hd-auth-points small { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); }

.hd-auth-app {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
}

.hd-auth-side .hd-auth-points + .hd-auth-app { margin-top: 32px; }
.hd-auth-qr { width: 96px; height: 96px; padding: 6px; border-radius: 12px; background: #fff; }
.hd-auth-app strong { display: block; margin-bottom: 8px; font-size: 15px; color: #fff; }
.hd-auth-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-auth-badges img { display: block; width: 112px; height: 34px; }

@media (max-width: 991px) {
    .hd-auth-card { grid-template-columns: 1fr; max-width: 520px; }
    .hd-auth-side { display: none; }

    .hd-auth-trust-mobile {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 18px;
        list-style: none;
        margin: 24px 0 0;
        padding: 18px 0 0;
        border-top: 1px solid #f2f4f7;
    }

    .hd-auth-trust-mobile li {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        font-size: 13px;
        color: #475467;
    }

    .hd-auth-trust-mobile i { color: #12b76a; }
}

@media (max-width: 575px) {
    .hd-auth { padding: 20px 0 48px; }
    .hd-auth-card { border-radius: 20px; }
    .hd-auth-form { padding: 28px 20px; }
    .hd-auth-form h1 { font-size: 26px; }
    .hd-auth-tabs { display: flex; }
    .hd-auth-tabs > * { flex: 1; justify-content: center; }
}

/* ---------- Join and password pages ---------- */
.hd-auth .mt-18 { margin-top: 18px; }
.hd-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.hd-auth-field.is-select { position: relative; padding-right: 12px; }
.hd-auth-field select {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    padding: 0 22px 0 0;
    background: transparent;
    font-size: 15px;
    color: var(--color-heading);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.hd-auth-field select:focus { outline: none; }
.hd-auth-field .hd-auth-caret { position: absolute; right: 14px; pointer-events: none; font-size: 16px; }
.hd-auth-prefix {
    flex-shrink: 0;
    padding-right: 10px;
    border-right: 1px solid #eaecf0;
    font-size: 15px;
    font-weight: 600;
    color: #344054;
}

.hd-auth-rules { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.hd-auth-rules li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 12px;
    font-weight: 500;
    color: #667085;
    transition: background-color .15s ease, color .15s ease;
}
.hd-auth-rules li::before { content: "\e937"; font-family: "feather" !important; font-size: 11px; } /* circle */
.hd-auth-rules li.is-ok { background: #ecfdf3; color: #067647; }
.hd-auth-rules li.is-ok::before { content: "\e92b"; } /* check */

.hd-auth-legal { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #98a2b3; text-align: center; }
.hd-auth-legal a { color: #667085; text-decoration: underline; }
.hd-auth-switch.is-small { margin-top: 10px; font-size: 14px; }

a.hd-auth-submit { color: #fff; }
a.hd-auth-submit:hover { color: #fff; }

.hd-auth-back {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 600;
    color: #667085;
}
.hd-auth-back:hover { color: var(--color-primary); }

.hd-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(99, 91, 255, .1);
    color: var(--color-primary);
    font-size: 22px;
}
.hd-auth-icon.is-success { background: #ecfdf3; color: #12b76a; }
/* Emails move to the next line whole; only a very long one breaks inside. */
.hd-auth-sub strong { color: var(--color-heading); overflow-wrap: anywhere; }

.hd-auth-linkbtn { padding: 0; border: 0; background: none; font-weight: 600; color: var(--color-primary); }
.hd-auth-linkbtn:disabled { color: #98a2b3; cursor: default; }

@media (max-width: 575px) {
    .hd-auth-grid { grid-template-columns: 1fr; gap: 0; }
    .hd-auth-grid > div + div { margin-top: 18px; }
}

/* ---------- Set a new password ---------- */
.hd-auth-icon.is-warning { background: #fffaeb; color: #dc6803; }
.hd-auth-field.is-invalid { border-color: #f04438; }
.hd-auth-field.is-invalid:focus-within { box-shadow: 0 0 0 4px rgba(240, 68, 56, .12); }
.hd-auth-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #b42318;
}
.hd-auth-error i { margin-top: 2px; }
