/*
 * Registration-page top-bar refinement.
 */

.subscriber-page-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

/* Sophra Innova logo presentation */
.register-topbar-brand {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;

    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;
    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    text-decoration: none !important;
}

.register-topbar-brand img {
    display: block !important;

    width: auto !important;
    max-width: min(58vw, 265px) !important;

    height: auto !important;
    max-height: 48px !important;

    object-fit: contain !important;
    object-position: left center !important;
}

.register-topbar-brand strong {
    color: #f97316 !important;
    font-size: 1.05rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.03em !important;
}

/* Login is the only remaining top-bar action */
.register-topbar-actions {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.subscriber-page-topbar .register-login-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #9a3412 !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-size: 0.92rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;

    text-decoration: none !important;
}

.subscriber-page-topbar .register-login-link:hover,
.subscriber-page-topbar .register-login-link:focus-visible {
    color: #f97316 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* Remove unnecessary space after the duplicated branding is removed */
.register-intro {
    padding-top: 0 !important;
}

.register-intro .register-brand,
.register-intro .landing-kicker {
    display: none !important;
}

@media (max-width: 600px) {
    .subscriber-page-topbar {
        gap: 12px !important;
    }

    .register-topbar-brand img {
        max-width: min(64vw, 235px) !important;
        max-height: 43px !important;
    }

    .subscriber-page-topbar .register-login-link {
        font-size: 0.86rem !important;
    }
}

/* REGISTER_REQUIRED_FIELDS_START */

/* Required-field indicator */
.register-required-asterisk {
    display: inline-block;
    margin-left: 4px;

    color: #dc2626;

    font-size: 1em;
    font-weight: 950;
    line-height: 1;
}

/* Required-field explanation */
.register-required-note {
    margin: 0 0 16px;
    color: #64748b;

    font-size: 0.82rem;
    font-weight: 750;
}

.register-required-note > span {
    color: #dc2626;
    font-weight: 950;
}

/* Create Account remains visible but unavailable before confirmation */
button[type="submit"].is-confirmation-locked,
input[type="submit"].is-confirmation-locked {
    opacity: 0.48 !important;

    cursor: not-allowed !important;
    pointer-events: none !important;

    filter: grayscale(0.15) saturate(0.65) !important;

    box-shadow: none !important;
    transform: none !important;
}

button[type="submit"].is-confirmation-locked:hover,
input[type="submit"].is-confirmation-locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* REGISTER_REQUIRED_FIELDS_END */

/* REGISTER_STEPS_SLIDESHOW_START */

/*
 * Timed slideshow for registration steps 1, 2 and 3.
 * The slideshow is activated only after JavaScript initializes.
 */

.register-steps.is-register-slideshow-ready {
    position: relative !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 0 !important;
    margin-bottom: 0 !important;

    overflow: hidden !important;
}

/*
 * All cards occupy the same presentation frame.
 */
.register-steps.is-register-slideshow-ready > .register-step {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(44px);

    transition:
        opacity 520ms ease,
        transform 520ms cubic-bezier(.22, .75, .25, 1),
        visibility 0s linear 520ms;

    will-change: opacity, transform;
}

.register-steps.is-register-slideshow-ready
> .register-step.is-register-step-active {
    z-index: 3;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);

    transition-delay: 0s;
}

.register-steps.is-register-slideshow-ready
> .register-step.is-register-step-before {
    z-index: 1;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-44px);
}

.register-steps.is-register-slideshow-ready
> .register-step.is-register-step-after {
    z-index: 2;

    opacity: 0;
    visibility: hidden;

    transform: translateX(44px);
}

/* Dotted slideshow navigation */
.register-steps-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 14px;

    gap: 8px;
    margin: 11px 0 4px;
    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;
}

.register-steps-dot {
    appearance: none;
    -webkit-appearance: none;

    display: block;
    flex: 0 0 8px;

    width: 8px;
    min-width: 8px;
    max-width: 8px;

    height: 8px;
    min-height: 8px;
    max-height: 8px;

    margin: 0;
    padding: 0;

    background: rgba(249, 115, 22, 0.28);

    border: 0;
    border-radius: 50%;

    box-shadow: none;
    cursor: pointer;

    transition:
        background 220ms ease,
        transform 220ms ease;
}

.register-steps-dot.is-active {
    background: #f97316;
    transform: scale(1.25);
}

.register-steps-dot:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 4px;
}

.register-steps-dot::before,
.register-steps-dot::after {
    display: none;
    content: none;
}

@media (prefers-reduced-motion: reduce) {
    .register-steps.is-register-slideshow-ready > .register-step {
        transition: none !important;
    }

    .register-steps-dot {
        transition: none !important;
    }
}

/* REGISTER_STEPS_SLIDESHOW_END */
