/* Quantalec Capital — Auth & onboarding (premium interactive shell) */

.qc-auth {
    --qc-auth-midnight: #0a1628;
    --qc-auth-teal: #00bfa5;
    --qc-auth-gold: #e9b840;
    --qc-auth-sand: #f7f4ef;
    --qc-auth-ink: #243047;
    --qc-auth-mist: #5b6b85;
    --qc-auth-line: rgba(10, 22, 40, 0.1);
    --qc-auth-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --qc-auth-font-display: 'DM Sans', 'Syne', sans-serif;
    --qc-auth-font-body: 'DM Sans', sans-serif;
    --qc-auth-font-ui: 'Jost', sans-serif;
    --qc-auth-font-mono: 'JetBrains Mono', monospace;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--qc-auth-sand);
    color: var(--qc-auth-midnight);
    font-family: var(--qc-auth-font-body);
    overflow-x: hidden;
}

/* —— Atmospheric layers —— */
.qc-auth__atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.qc-auth__atmosphere-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 8% 12%, rgba(0, 191, 165, 0.14), transparent 58%),
        radial-gradient(ellipse 55% 45% at 92% 18%, rgba(233, 184, 64, 0.1), transparent 55%),
        radial-gradient(ellipse 60% 50% at 70% 88%, rgba(0, 191, 165, 0.08), transparent 55%),
        linear-gradient(180deg, #f7f4ef 0%, #f3f0ea 48%, #efebe4 100%);
}

.qc-auth__atmosphere-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(10, 22, 40, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 22, 40, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.qc-auth__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: qc-auth-orb 14s var(--qc-auth-ease) infinite alternate;
}

.qc-auth__orb--a {
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    top: -8%;
    left: -6%;
    background: rgba(0, 191, 165, 0.28);
}

.qc-auth__orb--b {
    width: min(36vw, 360px);
    height: min(36vw, 360px);
    top: 18%;
    right: -10%;
    background: rgba(233, 184, 64, 0.2);
    animation-delay: -4s;
    animation-duration: 18s;
}

.qc-auth__orb--c {
    width: min(48vw, 480px);
    height: min(48vw, 480px);
    bottom: -16%;
    left: 28%;
    background: rgba(0, 191, 165, 0.16);
    animation-delay: -8s;
    animation-duration: 20s;
}

@keyframes qc-auth-orb {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

.qc-auth__progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    background: transparent;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--qc-auth-teal), var(--qc-auth-gold));
}

/* —— Header —— */
.qc-auth__header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 244, 239, 0.72);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: background 0.35s var(--qc-auth-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.qc-auth__header.is-scrolled {
    background: rgba(247, 244, 239, 0.9);
    border-bottom-color: var(--qc-auth-line);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.05);
}

.qc-auth__header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.95rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.qc-auth__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.qc-auth__brand .qc-site-logo {
    display: inline-flex;
    align-items: center;
}

.qc-auth__brand .qc-site-logo__img {
    display: block;
    height: 1.75rem;
    width: auto;
    max-width: min(42vw, 190px);
}

.qc-auth__brand .qc-site-logo__img--light {
    display: none !important;
}

.qc-auth__header--onboarding .qc-auth__header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem 1rem;
}

.qc-auth__header--onboarding .qc-auth__brand {
    justify-self: start;
}

.qc-auth__header--onboarding .qc-auth__header-progress {
    justify-self: center;
}

.qc-auth__header--onboarding .qc-auth__header-links {
    justify-self: end;
}

.qc-auth__header-step {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 191, 165, 0.1);
    border: 1px solid rgba(0, 191, 165, 0.18);
    font-family: var(--qc-auth-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #065f56;
    white-space: nowrap;
}

.qc-auth__header-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--qc-auth-mist);
    white-space: nowrap;
}

.qc-auth__header-link {
    color: rgba(10, 22, 40, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.qc-auth__header-link:hover {
    color: var(--qc-auth-teal);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.qc-auth__header-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
}

.qc-auth__header-links a {
    color: rgba(10, 22, 40, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.qc-auth__header-links a:hover {
    color: var(--qc-auth-teal);
}

.qc-auth__header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--qc-auth-midnight);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.82rem;
    transition: transform 0.25s var(--qc-auth-ease), background 0.25s ease, box-shadow 0.25s ease;
}

.qc-auth__header-cta:hover {
    background: var(--qc-auth-teal);
    color: #04211c !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 191, 165, 0.28);
}

.qc-auth__site-logo .qc-site-logo__img {
    height: 1.85rem;
    transition: transform 0.35s var(--qc-auth-ease);
}

.qc-auth__optional {
    font-weight: 400;
    color: var(--qc-auth-mist);
}

.qc-auth__field-hint {
    margin: -0.35rem 0 0.75rem;
    font-size: 0.84rem;
    color: var(--qc-auth-mist);
}

.qc-auth__site-logo:hover .qc-site-logo__img {
    transform: scale(1.03);
}

/* —— Shell + card —— */
.qc-auth__shell {
    position: relative;
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: clamp(1.75rem, 5vw, 3.5rem) 1.25rem 3.5rem;
    flex: 1;
}

.qc-auth__card {
    position: relative;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 70px rgba(10, 22, 40, 0.1),
        0 2px 8px rgba(10, 22, 40, 0.04);
    padding: clamp(1.6rem, 4.5vw, 2.75rem);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    animation: qc-auth-card-in 0.7s var(--qc-auth-ease) both;
}

.qc-auth__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--qc-auth-teal), var(--qc-auth-gold), transparent);
    opacity: 0.85;
}

.qc-auth__card::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(0, 191, 165, 0.08), transparent 68%);
    pointer-events: none;
}

@keyframes qc-auth-card-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* —— Typography —— */
.qc-auth__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    font-family: var(--qc-auth-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--qc-auth-teal);
}

.qc-auth__kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.qc-auth__title {
    margin: 0 0 0.55rem;
    font-family: var(--qc-auth-font-display);
    font-size: clamp(1.85rem, 4.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--qc-auth-midnight);
}

.qc-auth__lede {
    margin: 0 0 1.85rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--qc-auth-mist);
}

.qc-auth__lede strong {
    color: var(--qc-auth-ink);
    font-weight: 600;
}

/* —— Onboarding progress —— */
.qc-auth__progress {
    margin-bottom: 1.85rem;
}

.qc-auth__progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    color: var(--qc-auth-mist);
    font-weight: 500;
}

.qc-auth__progress-meta strong {
    color: var(--qc-auth-midnight);
    font-weight: 700;
}

.qc-auth__progress-track {
    display: grid;
    grid-template-columns: repeat(var(--qc-auth-steps, 4), 1fr);
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.qc-auth__progress-step {
    height: 5px;
    border-radius: 999px;
    background: rgba(10, 22, 40, 0.08);
    overflow: hidden;
    position: relative;
}

.qc-auth__progress-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--qc-auth-teal), #00a893);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s var(--qc-auth-ease);
}

.qc-auth__progress-step.is-done::after,
.qc-auth__progress-step.is-current::after {
    transform: scaleX(1);
}

.qc-auth__progress-step.is-current::after {
    background: linear-gradient(90deg, var(--qc-auth-teal), var(--qc-auth-gold));
    animation: qc-auth-progress-glow 1.8s ease-in-out infinite;
}

@keyframes qc-auth-progress-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.qc-auth__progress-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(10, 22, 40, 0.08);
    overflow: hidden;
}

.qc-auth__progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--qc-auth-teal), var(--qc-auth-gold));
    transition: width 0.55s var(--qc-auth-ease);
}

/* —— Forms —— */
.qc-auth__grid {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 640px) {
    .qc-auth__grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.qc-auth__legend,
.qc-auth__field legend {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--qc-auth-midnight);
}

.qc-auth__field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--qc-auth-midnight);
}

.qc-auth__field input,
.qc-auth__field select,
.qc-auth__field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(10, 22, 40, 0.12);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    color: var(--qc-auth-midnight);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--qc-auth-ease), background 0.25s ease;
}

.qc-auth__field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.qc-auth__field input:hover,
.qc-auth__field select:hover,
.qc-auth__field textarea:hover {
    border-color: rgba(10, 22, 40, 0.2);
}

.qc-auth__field input:focus,
.qc-auth__field select:focus,
.qc-auth__field textarea:focus {
    outline: none;
    border-color: rgba(0, 191, 165, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.14);
    background: #fff;
}

.qc-auth__hint {
    margin-top: 0.4rem;
    font-size: 0.84rem;
    color: var(--qc-auth-mist);
}

.qc-auth__hint a {
    color: var(--qc-auth-teal);
    font-weight: 650;
    text-decoration: none;
}

.qc-auth__hint a:hover {
    text-decoration: underline;
}

.qc-auth__check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    background: rgba(10, 22, 40, 0.025);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--qc-auth-ink);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.qc-auth__check:hover {
    background: rgba(0, 191, 165, 0.05);
    border-color: rgba(0, 191, 165, 0.14);
}

.qc-auth__check input {
    margin-top: 0.2rem;
    accent-color: var(--qc-auth-teal);
    width: 1.05rem;
    height: 1.05rem;
}

.qc-auth__check a {
    color: var(--qc-auth-teal);
    font-weight: 650;
}

/* —— Interactive option tiles —— */
.qc-auth__options {
    display: grid;
    gap: 0.65rem;
}

.qc-auth__options--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .qc-auth__options--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.qc-auth__option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    border: 1.5px solid rgba(10, 22, 40, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition:
        border-color 0.25s var(--qc-auth-ease),
        background 0.25s ease,
        transform 0.25s var(--qc-auth-ease),
        box-shadow 0.25s var(--qc-auth-ease);
}

.qc-auth__option:hover {
    border-color: rgba(0, 191, 165, 0.4);
    background: rgba(0, 191, 165, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 22, 40, 0.07);
}

.qc-auth__option:has(input:checked) {
    border-color: rgba(0, 191, 165, 0.65);
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.12), rgba(233, 184, 64, 0.06));
    box-shadow: 0 14px 32px rgba(0, 191, 165, 0.12);
    transform: translateY(-1px);
}

.qc-auth__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.qc-auth__option-mark {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 1.5px solid rgba(10, 22, 40, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--qc-auth-ease);
    background: #fff;
}

.qc-auth__option:has(input[type="checkbox"]) .qc-auth__option-mark {
    border-radius: 0.35rem;
}

.qc-auth__option:has(input:checked) .qc-auth__option-mark {
    background: var(--qc-auth-teal);
    border-color: var(--qc-auth-teal);
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.16);
}

.qc-auth__option-mark::after {
    content: '';
    width: 0.35rem;
    height: 0.6rem;
    border: solid #04211c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    margin-top: -1px;
    transition: transform 0.2s var(--qc-auth-ease), opacity 0.2s ease;
}

.qc-auth__option:has(input:checked) .qc-auth__option-mark::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

.qc-auth__option-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.qc-auth__option-label {
    font-weight: 650;
    color: var(--qc-auth-midnight);
    font-size: 0.95rem;
}

.qc-auth__option-hint {
    font-size: 0.8rem;
    color: var(--qc-auth-mist);
    line-height: 1.4;
}

/* Card-style selection tiles (no native checkbox/radio chrome) */
.qc-auth__tiles {
    display: grid;
    gap: 0.65rem;
}

.qc-auth__tiles--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .qc-auth__tiles--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.qc-auth__tile {
    position: relative;
    display: block;
    padding: 1rem 1.05rem;
    border: 1.5px solid rgba(10, 22, 40, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    user-select: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.qc-auth__tile:hover {
    border-color: rgba(0, 191, 165, 0.38);
    background: rgba(0, 191, 165, 0.04);
    box-shadow: 0 8px 22px rgba(10, 22, 40, 0.06);
}

.qc-auth__tile.is-selected,
.qc-auth__tile:has(input:checked) {
    border-color: rgba(0, 191, 165, 0.62);
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.11), rgba(233, 184, 64, 0.05));
    box-shadow: 0 10px 26px rgba(0, 191, 165, 0.1);
}

.qc-auth__tile input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
}

.qc-auth__tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-right: 1.5rem;
}

.qc-auth__tile-label {
    font-family: var(--qc-auth-font-body);
    font-weight: 650;
    font-size: 0.95rem;
    color: var(--qc-auth-midnight);
}

.qc-auth__tile-hint {
    font-size: 0.8rem;
    color: var(--qc-auth-mist);
    line-height: 1.4;
}

.qc-auth__tile-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #04211c;
    background: rgba(10, 22, 40, 0.06);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.qc-auth__tile.is-selected .qc-auth__tile-badge,
.qc-auth__tile:has(input:checked) .qc-auth__tile-badge {
    background: var(--qc-auth-teal);
    transform: scale(1.05);
}

.qc-auth__tile--toggle .qc-auth__tile-body {
    padding-right: 2rem;
}

.qc-auth__tiles--stack {
    grid-template-columns: 1fr;
}

.qc-auth__tiles--stack .qc-auth__tile {
    width: 100%;
}

/* Horizontal scroll selection rail */
.qc-auth__scroll {
    position: relative;
    margin: 0 -0.15rem;
}

.qc-auth__scroll::before,
.qc-auth__scroll::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0.65rem;
    width: 1.75rem;
    z-index: 2;
    pointer-events: none;
}

.qc-auth__scroll::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), transparent);
}

.qc-auth__scroll::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.95), transparent);
}

.qc-auth__scroll-track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0.15rem 0.75rem;
    scrollbar-width: none;
}

.qc-auth__scroll-track::-webkit-scrollbar {
    display: none;
}

.qc-auth__scroll-item {
    flex: 0 0 min(72vw, 210px);
    scroll-snap-align: start;
    min-height: 4.5rem;
}

.qc-auth__scroll-item .qc-auth__tile-label {
    font-size: 0.9rem;
    line-height: 1.35;
}

.qc-auth__scroll-hint {
    display: block;
    margin-top: -0.15rem;
    font-family: var(--qc-auth-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(10, 22, 40, 0.38);
    text-align: right;
}

/* Onboarding shell — smooth but lightweight */
.qc-auth--onboarding .qc-auth__orb {
    display: none;
}

.qc-auth--onboarding .qc-auth__atmosphere-grid {
    opacity: 0.22;
}

.qc-auth--onboarding .qc-auth__card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
    animation: qc-auth-card-in 0.45s var(--qc-auth-ease) both;
}

.qc-auth--onboarding .qc-auth__card::after {
    display: none;
}

.qc-auth--onboarding .qc-auth__header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.qc-auth--onboarding .qc-auth__form {
    animation: qc-auth-fade-up 0.4s var(--qc-auth-ease) both;
}

@keyframes qc-auth-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qc-auth--onboarding .qc-auth__tile {
    transition:
        border-color 0.22s var(--qc-auth-ease),
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s var(--qc-auth-ease);
}

.qc-auth--onboarding .qc-auth__tile:active {
    transform: scale(0.985);
}

.qc-auth--onboarding .qc-auth__tile.is-selected,
.qc-auth--onboarding .qc-auth__tile:has(input:checked) {
    transform: translateY(-1px);
}

.qc-auth--onboarding .qc-auth__btn--primary {
    transition: transform 0.22s var(--qc-auth-ease), box-shadow 0.22s ease, background 0.22s ease;
}

.qc-auth--onboarding .qc-auth__btn--primary:active {
    transform: scale(0.98);
}

.qc-auth--onboarding .qc-auth__progress-step.is-current::after {
    animation: qc-auth-progress-glow 2s ease-in-out infinite;
}

.qc-auth--onboarding .qc-auth__scroll.is-scrolled-end::after {
    opacity: 0;
}

.qc-auth--onboarding .qc-auth__scroll.is-scrolled-start::before {
    opacity: 0;
}

/* Stepped range band slider */
.qc-auth__range {
    padding: 0.15rem 0 0.25rem;
}

.qc-auth__range-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(0, 191, 165, 0.07);
    border: 1px solid rgba(0, 191, 165, 0.16);
}

.qc-auth__range-kicker {
    font-family: var(--qc-auth-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(10, 22, 40, 0.45);
}

.qc-auth__range-value {
    font-family: var(--qc-auth-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--qc-auth-midnight);
    line-height: 1.35;
}

.qc-auth__range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 191, 165, 0.25), rgba(233, 184, 64, 0.25));
    outline: none;
    cursor: pointer;
}

.qc-auth__range-input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(10, 22, 40, 0.08);
}

.qc-auth__range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--qc-auth-teal);
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 191, 165, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qc-auth__range-input:active::-webkit-slider-thumb {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 191, 165, 0.45);
}

.qc-auth__range-input::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(10, 22, 40, 0.08);
    border: 0;
}

.qc-auth__range-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--qc-auth-teal);
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 191, 165, 0.35);
    cursor: pointer;
}

.qc-auth__range-ticks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.qc-auth__range-tick {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(10, 22, 40, 0.38);
    padding: 0.25rem 0.15rem;
    border-radius: 0.45rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.qc-auth__range-tick.is-active {
    color: #065f56;
    background: rgba(0, 191, 165, 0.12);
}

/* —— Buttons —— */
.qc-auth__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.85rem;
}

.qc-auth__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    border: 0;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.25s var(--qc-auth-ease),
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.qc-auth__btn--primary {
    background: linear-gradient(135deg, #00bfa5 0%, #00a893 100%);
    color: #04211c;
    box-shadow: 0 10px 28px rgba(0, 191, 165, 0.28);
}

.qc-auth__btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--qc-auth-ease);
}

.qc-auth__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 191, 165, 0.35);
    background: var(--qc-auth-midnight);
    color: #fff;
}

.qc-auth__btn--primary:hover::before {
    transform: translateX(120%);
}

.qc-auth__btn--primary.is-glow {
    animation: qc-auth-btn-glow 2.6s ease-in-out infinite;
}

@keyframes qc-auth-btn-glow {
    0%, 100% { box-shadow: 0 10px 28px rgba(0, 191, 165, 0.28), 0 0 0 0 rgba(0, 191, 165, 0.35); }
    50% { box-shadow: 0 10px 28px rgba(0, 191, 165, 0.28), 0 0 0 12px rgba(0, 191, 165, 0); }
}

.qc-auth__btn--ghost {
    background: rgba(255, 255, 255, 0.55);
    color: rgba(10, 22, 40, 0.78);
    border: 1px solid rgba(10, 22, 40, 0.12);
}

.qc-auth__btn--ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 191, 165, 0.35);
    color: var(--qc-auth-midnight);
    background: #fff;
}

.qc-auth__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

.qc-auth__btn:disabled::before {
    display: none;
}

/* —— Alerts / badges / status —— */
.qc-auth__alert {
    margin-bottom: 1.25rem;
    padding: 0.95rem 1.05rem;
    border-radius: 0.95rem;
    font-size: 0.92rem;
    line-height: 1.5;
    animation: qc-auth-alert-in 0.45s var(--qc-auth-ease) both;
}

@keyframes qc-auth-alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.qc-auth__alert--success {
    background: rgba(0, 191, 165, 0.1);
    border: 1px solid rgba(0, 191, 165, 0.22);
    color: #065f56;
}

.qc-auth__alert--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

.qc-auth__alert--info {
    background: rgba(10, 22, 40, 0.04);
    border: 1px solid rgba(10, 22, 40, 0.08);
    color: var(--qc-auth-ink);
}

.qc-auth__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 191, 165, 0.12);
    color: #065f56;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.qc-auth__badge::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    animation: qc-auth-pulse 1.6s ease-in-out infinite;
}

@keyframes qc-auth-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.qc-auth__status {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 0 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(0, 191, 165, 0.16), rgba(233, 184, 64, 0.1));
    color: var(--qc-auth-teal);
    box-shadow: 0 12px 30px rgba(0, 191, 165, 0.12);
    animation: qc-auth-status-in 0.65s var(--qc-auth-ease) both;
}

.qc-auth__status--warn {
    background: linear-gradient(145deg, rgba(244, 160, 30, 0.16), rgba(233, 184, 64, 0.1));
    color: #b45309;
}

.qc-auth__status--danger {
    background: linear-gradient(145deg, rgba(224, 75, 58, 0.14), rgba(185, 28, 28, 0.08));
    color: #b91c1c;
}

.qc-auth__status svg {
    width: 1.85rem;
    height: 1.85rem;
}

@keyframes qc-auth-status-in {
    from { opacity: 0; transform: scale(0.8) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.qc-auth__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.qc-auth__footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(10, 22, 40, 0.45);
}

.qc-auth__footer a {
    color: rgba(10, 22, 40, 0.55);
    text-decoration: none;
}

.qc-auth__footer a:hover {
    color: var(--qc-auth-teal);
}

.qc-auth__footer-hairline {
    width: min(220px, 50%);
    height: 2px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--qc-auth-teal), var(--qc-auth-gold), transparent);
    opacity: 0.65;
}

/* —— Registration wizard —— */
.qc-reg-wizard {
    width: 100%;
}

.qc-reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.85rem;
}

.qc-reg-steps__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(10, 22, 40, 0.4);
    font-size: 0.82rem;
    font-weight: 650;
    transition: color 0.3s ease;
}

.qc-reg-steps__item.is-active,
.qc-reg-steps__item.is-done {
    color: var(--qc-auth-midnight);
}

.qc-reg-steps__dot {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(10, 22, 40, 0.14);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.35s var(--qc-auth-ease), border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--qc-auth-ease);
}

.qc-reg-steps__item.is-active .qc-reg-steps__dot {
    background: var(--qc-auth-teal);
    border-color: var(--qc-auth-teal);
    color: #04211c;
    box-shadow: 0 0 0 5px rgba(0, 191, 165, 0.16);
    transform: scale(1.06);
}

.qc-reg-steps__item.is-done .qc-reg-steps__dot {
    background: rgba(0, 191, 165, 0.16);
    border-color: rgba(0, 191, 165, 0.5);
    color: #065f56;
}

.qc-reg-steps__line {
    width: 2.75rem;
    height: 2px;
    background: rgba(10, 22, 40, 0.1);
    transition: background 0.4s ease;
}

.qc-reg-steps__line.is-done {
    background: linear-gradient(90deg, var(--qc-auth-teal), var(--qc-auth-gold));
}

.qc-reg-detect {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.6);
}

.qc-reg-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0, 191, 165, 0.25);
    border-top-color: var(--qc-auth-teal);
    animation: qc-spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes qc-spin {
    to { transform: rotate(360deg); }
}

.qc-reg-country-field {
    position: relative;
}

.qc-reg-country-wrap {
    position: relative;
}

.qc-reg-country-flag {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.qc-reg-country-input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(10, 22, 40, 0.12);
    border-radius: 0.95rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qc-reg-country-input.has-flag {
    padding-left: 2.65rem;
}

.qc-reg-country-input:focus {
    outline: none;
    border-color: rgba(0, 191, 165, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.14);
}

.qc-reg-country-menu {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: min(280px, 45vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(10, 22, 40, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 48px rgba(10, 22, 40, 0.14);
    backdrop-filter: blur(12px);
    animation: qc-auth-menu-in 0.22s var(--qc-auth-ease);
}

@keyframes qc-auth-menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.qc-reg-country-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
    min-height: 46px;
    transition: background 0.15s ease;
}

.qc-reg-country-option:hover,
.qc-reg-country-option.is-selected {
    background: rgba(0, 191, 165, 0.09);
}

.qc-reg-country-option.is-blocked {
    opacity: 0.55;
}

.qc-reg-country-code {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.4);
}

.qc-reg-country-empty {
    padding: 0.75rem 1rem;
}

.qc-reg-banner {
    margin-top: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    line-height: 1.45;
    animation: qc-auth-alert-in 0.35s var(--qc-auth-ease);
}

.qc-reg-banner--blocked {
    background: rgba(185, 28, 28, 0.07);
    border: 1px solid rgba(185, 28, 28, 0.18);
    color: #7f1d1d;
}

.qc-reg-banner--blocked strong {
    display: block;
    margin-bottom: 0.2rem;
}

.qc-reg-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(10, 22, 40, 0.05);
    font-size: 0.82rem;
    font-weight: 650;
    vertical-align: middle;
}

.qc-reg-country-chip--block {
    display: inline-flex;
    margin: 0 0 1.35rem;
    margin-left: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    background: rgba(0, 191, 165, 0.08);
    border: 1px solid rgba(0, 191, 165, 0.18);
}

.qc-reg-country-chip__edit {
    border: 0;
    background: transparent;
    color: var(--qc-auth-teal);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0.15rem 0.1rem;
    min-height: 32px;
}

.qc-reg-phone {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(10, 22, 40, 0.12);
    border-radius: 0.9rem;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qc-reg-phone:focus-within {
    border-color: rgba(0, 191, 165, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.14);
}

.qc-reg-phone__prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.9rem;
    background: rgba(10, 22, 40, 0.04);
    border-right: 1px solid rgba(10, 22, 40, 0.08);
    font-weight: 650;
    font-size: 0.88rem;
    color: rgba(10, 22, 40, 0.65);
    min-width: 3.5rem;
    justify-content: center;
}

.qc-reg-phone input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.qc-reg-strength {
    margin-top: 0.5rem;
}

.qc-reg-strength__bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(10, 22, 40, 0.08);
    overflow: hidden;
}

.qc-reg-strength__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s var(--qc-auth-ease), background 0.3s ease;
    background: #b91c1c;
}

.qc-reg-strength__bar span.is-level-1 { background: #b91c1c; }
.qc-reg-strength__bar span.is-level-2 { background: #c2410c; }
.qc-reg-strength__bar span.is-level-3 { background: #ca8a04; }
.qc-reg-strength__bar span.is-level-4 { background: #0f766e; }

.qc-reg-optional {
    font-style: normal;
    color: rgba(10, 22, 40, 0.45);
}

.qc-reg-actions {
    gap: 0.75rem;
}

.qc-reg-signin-hint {
    margin-top: 1.6rem;
}

.qc-reg-signin-hint a {
    color: var(--qc-auth-teal);
    font-weight: 650;
}

.qc-auth__links {
    margin-top: 1.6rem;
    font-size: 0.9rem;
    color: var(--qc-auth-mist);
}

.qc-auth__links a {
    color: var(--qc-auth-teal);
    font-weight: 650;
    text-decoration: none;
}

.qc-auth__links a:hover {
    text-decoration: underline;
}

[x-cloak] { display: none !important; }

/* —— Responsive —— */
@media (max-width: 640px) {
    .qc-auth__card {
        padding: 1.4rem 1.1rem 1.65rem;
        border-radius: 1.15rem;
    }

    .qc-auth__header--onboarding .qc-auth__header-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand links"
            "progress progress";
    }

    .qc-auth__header--onboarding .qc-auth__brand { grid-area: brand; }
    .qc-auth__header--onboarding .qc-auth__header-progress {
        grid-area: progress;
        justify-self: stretch;
        text-align: center;
        margin-top: 0.15rem;
    }
    .qc-auth__header--onboarding .qc-auth__header-links {
        grid-area: links;
        gap: 0.45rem;
    }

    .qc-auth__header--onboarding .qc-auth__header-link {
        display: none;
    }

    .qc-auth__header-status {
        display: none;
    }

    .qc-auth__title {
        font-size: clamp(1.6rem, 7vw, 1.95rem);
    }

    .qc-reg-steps {
        margin-bottom: 1.35rem;
    }

    .qc-reg-steps__label {
        display: none;
    }

    .qc-reg-steps__line {
        width: 1.75rem;
    }

    .qc-auth__grid--2 {
        grid-template-columns: 1fr;
    }

    .qc-auth__actions,
    .qc-reg-actions {
        flex-direction: column-reverse;
    }

    .qc-auth__actions .qc-auth__btn,
    .qc-reg-actions .qc-auth__btn {
        width: 100%;
    }

    .qc-reg-country-menu {
        max-height: min(240px, 40vh);
    }

    .qc-reg-country-chip--block {
        width: 100%;
        justify-content: flex-start;
    }

    .qc-auth__header-links a:not(.qc-auth__header-cta) {
        display: none;
    }

    .qc-auth__scroll-item {
        flex-basis: min(78vw, 200px);
    }
}

@media (max-width: 380px) {
    .qc-auth__shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qc-auth__orb,
    .qc-auth__btn--primary.is-glow,
    .qc-auth__progress-step.is-current::after,
    .qc-auth__badge::before,
    .qc-auth__card,
    .qc-auth__status,
    .qc-reg-spinner {
        animation: none !important;
    }

    .qc-auth__option,
    .qc-auth__btn,
    .qc-auth__field input,
    .qc-auth__field select,
    .qc-auth__field textarea {
        transition: none !important;
    }
}
