/*****************************************************/
/* Root styles, contains variables and global values */
/*****************************************************/

/* See common/resources/css/variables.css */

html {
    background-color: #1a1a1a;
}

/* apply font to all text */
* {
    font-family: "Figtree", sans-serif;
    color: var(--font-color); /* apply everywhere  */
}

/* apply font color to all p tags so we cover basic use-cases */
p,
label,
span,
:where(button, input, optgroup, select, textarea) {
    color: var(--font-color);
}

/* apply our color to all a tags so we cover links as well */
:where(a) {
    color: var(--link-color);
}

button,
input[type="button"],
input[type="submit"] {
    cursor: pointer;
}

input[type="submit"] {
    margin-bottom: 1rem;
}

/********************************************************************/
/* Theme based styles                                               */
/********************************************************************/

.kz-text-color-primary-color {
    color: var(--primary-color);
}
.kz-text-color-primary-font-color {
    color: var(--primary-font-color);
}
.kz-text-color-font-color {
    color: var(--font-color);
}
.kz-text-color-font-light-color {
    color: var(--font-light-color);
}
.kz-text-color-error-color {
    color: var(--error-color);
}
.kz-text-color-success-color {
    color: var(--success-color);
}
.kz-text-color-info-color {
    color: var(--info-color);
}
.kz-text-color-warning-color {
    color: var(--warning-color);
}

/********************************************************************/
/* Regular styles, these are injected via the theme.properties file */
/********************************************************************/

.kz-form-group {
    padding: 1px;
}

/* form group, labels + inputs, i.e. email, pw, etc. */
.kz-form-group .kz-label {
    /* we hide this as we display it as placeholder instead */
    display: none;
}

.kz-form-setting {
    /* make the setting such as "Remember me" checkbox closer to the inputbox above */
    margin-top: -1em;
    margin-bottom: -1em;
}

.kz-button {
    padding: 0.8rem 2rem;
}

.kz-button:disabled {
    /* make our buttons borderless if disabled */
    border: 2px solid var(--pf-v5-c-button--disabled--BackgroundColor);
}

.kz-small-button {
    padding: 0.5rem 2rem;
}

.kz-large-button {
    display: block;
    padding: 0.8rem 1rem;
}

.kz-list {
    color: var(--font-color);
}

/* primary button */
.kz-primary-button {
    color: var(--primary-font-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    outline: none;
}
.kz-primary-button:focus {
    border: 2px solid var(--primary-color);
}
.kz-primary-button:hover {
    border: 2px solid var(--primary-color);
    filter: brightness(120%);
}
.kz-secondary-button {
    color: var(--font-color);
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    outline: none;
}
.kz-secondary-button:focus {
    border: 2px solid var(--divider-color);
}
.kz-secondary-button:hover {
    border: 2px solid var(--font-color);
}

.kz-primary-button:disabled {
    /* Keeps your exact original colors */
    background-color: var(--primary-color);
    color: var(--primary-font-color);
    border-color: var(--primary-color);

    /* The "Disabled" Cues */
    cursor: not-allowed;     /* Shows the 'stop' sign cursor */
    pointer-events: none;    /* Makes the button unclickable and ignores hover */
    filter: saturate(60%);   /* Optional: makes the color look "dead" without fading it */
    box-shadow: none;        /* Removes any shadows that imply it's clickable */
}

/* Force hover/focus to do nothing when disabled */
.kz-primary-button:disabled:hover,
.kz-primary-button:disabled:focus {
    filter: saturate(60%);   /* Prevents the brightness(120%) from your hover rule */
    outline: none;
    border-color: var(--primary-color);
}

/* default button */
.kz-default-button {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
    margin-bottom: 10px;
}
.kz-default-button:focus,
.kz-default-button:active {
    outline: none;
    border-color: #a0d7e7;
    box-shadow: 0 0 0 2px rgba(160, 215, 231, 0.3);
}
.kz-default-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.kz-destroy-button {
    color: var(--primary-font-color);
    background-color: var(--error-color);
    border: 2px solid var(--error-color);
    border-radius: var(--border-radius);
    outline: none;
}
.kz-destroy-button:focus {
    border: 2px solid var(--font-color);
}
.kz-destroy-button:hover {
    border: 2px solid var(--font-color);
    filter: brightness(120%);
}

.kz-warning-button {
    color: var(--font-color);
    background-color: var(--warning-color);
    border: 2px solid var(--warning-color);
    border-radius: var(--border-radius);
    outline: none;
}
.kz-warning-button:focus {
    border: 2px solid var(--font-color);
}
.kz-warning-button:hover {
    border: 2px solid var(--font-color);
    filter: brightness(120%);
}

/* password visibility button */
.kz-pw-visibility-button {
    color: var(--font-color);
    background-color: transparent;
    border: 2px solid transparent;
    font-size: 80%;
    outline: none;
}
.kz-pw-visibility-button:focus {
    border: 2px solid transparent;
    border-radius: var(--border-radius);
}

.kz-pw-visibility-button i{
    font-size: 15px;
    margin-top: 4px;
}

/* input error messages */
.kz-input-error-message {
    color: var(--error-color);
    margin-left: 1rem;
}
/* --- DEFAULT STYLES (Applies to Desktop and All Pages) --- */

/* html doc */
.kz-html-doc,
#keycloak-bg.kz-body {
    background-image: url("../img/background.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    display: flex;
    padding: 0;
    background-color: #000;
}

/* page background */
.kz-body {
    margin: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

/* --- CONDITIONAL MOBILE DARK MODE --- */

/* Only apply dark background logic if the screen is small */
/* Only trigger if:
   1. The screen is mobile (max-width: 768px)
   2. AND the <html> has the .kz-dark-bg class (from your FTL prop)
*/
@media (max-width: 768px) {
    html.kz-dark-bg,
    html.kz-dark-bg #keycloak-bg.kz-body {
        background-image: none !important;
        background-color: #000000 !important;
        margin-top: 0px !important;
    }

    /* Hides branding assets on mobile dark mode to keep it clean */
    html.kz-dark-bg .kz-brand-asset-container {
        display: none !important;
    }

    html.kz-dark-bg .kz-login-container{
        border-radius: 0;
        padding: 0;
        backdrop-filter: none;
    }

    html.kz-dark-bg .kz-select-auth-list .kz-select-auth-list-item{
        background: rgba(255, 255, 255, 0.1);
    }

    html.kz-dark-bg #kz-form-card > div.kz-login-header {
        margin-top: 0vh;
    }
}

@media (max-width: 1279px) {
    html.kz-onboarding,
    html.kz-onboarding #keycloak-bg.kz-body {
        background-image: url("../img/transparent-background.webp") !important;
        background-color: #000000 !important;
        margin-top: 0 !important;
        background-position: center -200px !important;
        background-size: 400px !important;
        background-attachment: scroll !important;
    }

    /* Hides branding assets on mobile dark mode to keep it clean */
    html.kz-onboarding .kz-brand-asset-container {
        display: none !important;
    }

    html.kz-onboarding .kz-login-container{
        border-radius: 0;
        display: grid !important;
        margin-top: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow:none !important;
        min-height: 100vh;
        background-color: transparent !important;
        padding: 20px 5px !important;
    }

    html.kz-onboarding .kz-select-auth-list .kz-select-auth-list-item{
        background: rgba(255, 255, 255, 0.1);
    }

    html.kz-onboarding #kz-form-card > div.kz-login-header {
        justify-content: flex-start;
    }

    .kz-onboarding #kc-page-title {
        margin-top: 0 !important;
    }

    .kz-onboarding #onboardingGoBack {
        display: block;
        margin-bottom: 30px !important;
    }
}


/* generic wrapper content for given chunks of elements */
.kz-content-wrapper .subtitle {
    text-align: right;
    font-size: 0.8rem;
    color: var(--font-light-color);
}

.kz-content-wrapper .subtitle .required {
    color: var(--error-color);
}

/* login form right-side container */
.kz-login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(60px) brightness(90%);
    -webkit-backdrop-filter: blur(15px) brightness(50%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    isolation: isolate;
    backface-visibility: hidden;
    min-height: 95vh;
    padding: 20px 50px;
    box-sizing: border-box;
}

.kz-login-content {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    width: 100%;
    max-width: 600px;
}

.kz-login-content::-webkit-scrollbar {
    /* Chrome, Safari and Opera */
    display: none;
}

/* login form right-side container top */
.kz-login-header {
    margin: 0 auto;
    text-align: center;

    /* 1. Turn header into a flex container */
    display: flex;
    flex-direction: column;

    /* 2. Ensure it stretches to align items correctly */
    min-height: 120px; /* Adjust this height based on your design */
    justify-content: flex-end; /* Pushes children to the bottom */
}

/* login form right-side container bottom */
.kz-login-footer {
    margin: 0;
}

/* brand asset left-side container */
.kz-brand-asset-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}
/* form input boxes */
.kz-input {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--font-color);
    background-color: transparent;
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
    width: 100%;
    display: flex;
    align-items: center;
}

/* input element */
.kz-input > input {
    color: var(--font-color);
    background-color: transparent;
    border: none;
    flex: 1;
    outline: none;
    box-shadow: none;
}

/* remove all browser focus styles */
.kz-input > input:focus,
.kz-input > input:focus-visible {
    outline: none;
    box-shadow: none;
}

/* keep same border when focused or invalid */
.kz-input:focus,
.kz-input:focus-within,
.kz-input:has(input:focus),
.kz-input:has(input[aria-invalid="true"]) {
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: none;
    box-shadow: none;
}

/* some built-in templates have the wrapper and the actual input with this class name */
.kz-input .kz-input {
    padding: 0;
}

.kz-input > input::placeholder {
    color: var(--font-color);
    opacity: 0.6;
}
/* alert */
.kz-alert {
    border-radius: 16px;
    color: var(--font-color);
    display: flex;
    padding: 1rem;
    margin-bottom: 2rem;

    /* glass effect */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 0.5px solid rgba(255,255,255,0.25);

    box-shadow:
            0 8px 32px rgba(0,0,0,0.25),
            inset 0 1px 0 rgba(255,255,255,0.1);

    background: linear-gradient(
            135deg,
            rgba(196,0,65,0.20),
            rgba(196,0,65,0.05)
    );

    border: 0.5px solid rgba(255,255,255,0.25);
}

.kz-alert-title {
    margin-left: 0.8rem;
    width: 100%;
}

.kz-alert-success {
    border: 2px solid var(--success-color);
    background-color: var(--success-color-background);
}

.kz-alert-warning {
    border: 2px solid var(--warning-color);
    background-color: var(--warning-color-background);
}

.kz-alert-error {
    border: 0.5px solid rgba(253, 18, 18, 0.21);
    background-color: rgb(255 131 133 / 30%);
    backdrop-filter: blur(10px);
    text-align: center;
}

.kz-alert-info {
    border: 2px solid var(--info-color);
    background-color: var(--info-color-background);
}

/* brand title for white labeling, above login inputs */
.kz-brand-title {
    margin: 0 auto 2rem auto;
    width: 150px;
    display: block;
}

.kz-brand-authentication-key {
    width: 171px;
    transform: rotate(85deg);
}

.authentication-key-text{
    font-size: 1.5rem;
    width:100%;
    margin: 0 auto;
}
.kz-select-auth-list .kz-select-auth-list-item {
    margin-bottom: 20px;
}

.kz-select-auth-list-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative; /* Required for the pseudo-element */
    background-color: rgba(255, 255, 255, 0.1);
    align-items: center;
    padding: 1rem;
    border-radius: 16px;
    width: 100%;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1; /* Ensures text stays above the gradient */
}

.kz-select-auth-list-item > .content {
    flex-basis: 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

.kz-select-auth-list-item > .content .kz-select-auth-list-item {
    width: 100% !important;
    flex: 1 1 100%; /* Grow, shrink, and basis at 100% */
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box; /* Ensures padding doesn't push it over 100% */
}

.kz-select-auth-list-item > .content .kz-select-auth-list-item-body {
    width: 100%;
    flex: 1;
}

.kz-select-auth-list-item > .content.open {
    opacity: 1;
    padding-top: 15px;
    max-height: none !important;
}


/* The Gradient Border Layer */
.kz-select-auth-list-item::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px; /* Slight offset for border thickness */
    background: linear-gradient(120deg, #fff7a7, #f48445, #ff98ff, #5a66ee);
    border-radius: 18px; /* Slightly larger to match the outer curve */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kz-select-auth-list-item::after {
    content: "";
    position: absolute;
    inset: 0; /* Matches the parent exactly */
    background: #1a1a1a; /* Replace this with your actual page/container background color */
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kz-select-auth-list-item:hover::before,
.kz-select-auth-list-item:hover::after {
    opacity: 1;
}

/* Ensure the original background stays visible */
.kz-select-auth-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.kz-select-auth-list-item > .kz-select-auth-item-icon > .fa {
    color: var(--primary-font-color);
}

.kz-select-auth-list-item:hover > .kz-select-auth-item-icon > .fa {
    color: var(--primary-font-color);
}
.kz-select-auth-list-item:hover > .select-auth-box-arrow > .fa {
    color: var(--font-color);
}

.select-auth-box-arrow {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.kz-select-auth-list-item:hover .select-auth-box-arrow {
    opacity: 1;
}

.kz-select-auth-list-item-body {
    display: flex;
    flex-direction: column;
    text-align: start;
    flex: 1;
}

.kz-select-auth-list-item-heading {
    font-weight: 500;
    font-size: 1rem;
}

.kz-select-auth-list-item-description {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--font-light-color);
}


.kz-select-auth-item-icon {
    display: block;
    position: relative;
    width: 35px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 7px;
    margin-right: 0.5rem;
    border: 0.5px solid;
    border-image-source: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

.kz-select-auth-item-icon i.fa {
    width: 50px;
    padding: 0;
    font-size: 1.2rem;
}

.kz-select-auth-item-icon img {
    width: 14px;
    padding: 10px 0 0 0;
    margin-bottom: 5px;
}

    /* modal */
.kz-modal {
    position: fixed;
    justify-content: center;
    align-items: center;
    display: flex;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.25s;
}

.kz-modal-container {
    width: 650px;
    display: grid;
    grid-template-columns: min-content auto;
    grid-template-rows: repeat(3, auto);
    gap: 1rem;
    column-gap: 2rem;

    background-color: var(--background-tint-1-color);
    border-radius: 16px;
    padding: 3rem 2rem;
}

.kz-modal-info-icon {
    font-size: x-large;
    background-color: var(--info-color-background);
    border-radius: var(--border-radius);
    border: 2px solid var(--info-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    padding-bottom: 4px;
}

.kz-modal-error-icon {
    font-size: x-large;
    background-color: var(--error-color-background);
    border-radius: var(--border-radius);
    border: 2px solid var(--error-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    padding-bottom: 4px;
}

.kz-modal-title {
    font-size: xx-large;
    align-content: center;
}

.kz-modal-title {
    grid-column: 2;
}

.kz-modal-content {
    grid-column: 2;
}

.kz-modal-actions {
    grid-column: 2;
    margin-left: auto;
    margin-top: 2rem;
}
.kz-modal-actions > button:last-child {
    margin-left: 0.5rem;
}

/* social providers */
.kz-social-section {
    text-align: center;
}

.kc-social-item {
    margin-bottom: 1rem;
}

/* terms and conditions */
.kz-tos-link {
    white-space: nowrap;
    font-weight: 700;
}

/* webauthn: not registered link */
.kz-not-registered-link {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.kz-step-title {
    color: var(--info-color);
    text-align: center;
    font-size: 0.8em;
    font-weight: 600;
}

form.onboarding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5em;
}

form.onboarding h1 {
    text-align: center;
    font-size: 1.7em;
    line-height: 1.2em;
    margin-bottom: -20px;
    font-weight: 300;
}

form.onboarding p {
    text-align: center;
    font-size: 1em;
    line-height: 1.3em;
    font-weight: 300;
    color: rgba(178, 179, 189, 1);
}

form.onboarding .img-resource {
    max-width: 260px;
    margin: 20px;
}

form.onboarding .kz-button {
    min-width: 300px;
}

form.onboarding :where(a) {
    color: var(--font-color);
}

form.onboarding button img {
    max-height: 20px;
    margin-bottom: -4px;
    margin-right: 10px;
}

form.onboarding .kz-secondary-button {
    margin-top: -1.5em;
}

form.onboarding .downloadApp .qrCode {
    width: 120px;
    height: 120px;
}

form.onboarding .appSetup .qrCode {
    width: 160px;
    height: 160px;
}

form.onboarding .appSetup {
    background-color: var(--background-tint-1-color);
    flex-direction: row;
    display: flex;
    padding: 1.5em 3em 1.5em 1.5em;
    border-radius: 15px;
    border-color: var(--font-color);
    border: 1px solid;
    gap: 2em;
}

form.onboarding .setup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
}

form.onboarding .downloadApp {
    display: flex;
    flex-direction: row;
    gap: 2em;
    text-align: center;
}

form.onboarding .downloadApp .store {
    display: flex;
    flex: 1;
    gap: 2em;
    flex-direction: column;
    align-items: center;
    min-height: 50vh;
    justify-content: center;
}

form.onboarding .downloadApp .button {
    justify-content: center;
    display: flex;
    align-items: center;
}

form.onboarding .downloadApp .button img {
    height: 45px;
}

.did-badge {
    position: absolute;
    right: -3px;
    top: -3px;
    background-color: var(--primary-font-color);
    color: var(--primary-color);
    font-size: 9px;
}

.firstTime {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    margin-bottom: 5vh;
}

.text-with-line {
    overflow: hidden;
    text-align: center;
    margin: 2em 0;
    color: var(--font-light-color)
}

.text-with-line::before,
.text-with-line::after {
    background-color: var(--font-light-color);
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 50%;
}

.text-with-line::before {
    right: 0.5em;
    margin-left: -50%;
}

.text-with-line::after {
    left: 0.5em;
    margin-right: -50%;
}

.text-center {
    text-align: center;
}

/*****************************************************************/
/* ID styles, no theme.properties values so we override directly */
/*****************************************************************/

#kz-powered-by-kzero {
    display: flex;
    text-align: center;
    color: var(--font-light-color);
    margin-top: 2rem;
}

#kz-powered-by-kzero img {
    max-width: 250px;
}

/* login page title */
#kc-page-title {
    text-align: center;
    font-size: 1.5rem;
    padding: 0 0 1rem;
}

.kz-onboarding #kc-page-title {
    margin-top: 75px;
}

#kz-form-info {
    text-align: center;
    font-size: 1.5rem;
    max-width: 70%;
    margin: 0 auto;
    margin-bottom: 2rem;
}

/* supported language list at the bottom */
#kc-locale-wrapper {
    margin-bottom: 1rem;
    margin-top: 2em;
    text-align: center;
}
#kc-locale-wrapper li {
    display: inline;
}
#kc-locale-wrapper li:after {
    content: " \00b7";
}
#kc-locale-wrapper li:last-child:after {
    content: none;
}
#kc-locale-wrapper li a {
    color: var(--font-color);
}
#kc-locale-wrapper li.current-locale a {
    color: var(--font-light-color);
}

/* cancel button for passwordless webauthn flow*/
#cancelWebAuthnAIA {
    margin-top: 1rem;
}

/* try another way text */

#kz-try-another-way-selections-link {
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    color: var(--link-color);
}

#kz-try-another-way-selections-link .fa {
    color: var(--link-color);
}
#kc-select-try-another-way-form {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 8px;
}

.try-another-way-arrow-icon{
    margin-right: 5px;
    color: var(--link-color);
}

#kc-select-try-another-way-form > div > a {
    outline: none;
}

#kc-attempted-username,
#kz-authenticated-as-username {
    color: var(--info-color);
}

/* social providers link when not in selector */
#kc-social-providers {
    margin-top: 2rem;
}

/* username visuals during a login, allows to reset the sign in process */
#kc-username {
    text-align: center;
    margin: 1rem 0 2rem;
}

/* register button for webauthn. Doesn't have form-group, so have to patch this in */
#registerWebAuthn {
    margin-top: 1rem;
}

/* to add a proper spacing between the link and the sign in button for webauthn */
#kz-not-registered-link {
    margin-top: 5rem;
}

#kc-registration {
    margin-top: 1rem;
}

#kc-form-options {
    margin-bottom: 1rem;
}

#authenticateWebAuthnButton {
    margin-bottom: 3rem;
}

.downloadApp {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
}

.app-card {
    background: linear-gradient(145deg, #1c1c1e, #2c2c2e);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 260px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    gap: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.store-icon {
    padding: 10px 15px;
    background: #2f2f31;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-icon img,
.google-icon img {
    width: 26px;
    height: 26px;
}

/* Optional: different background for Google Play icon */
.store-icon.google-icon {
    background: #2a2a2d;
}

.app-card h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
}

.qrCode {
    width: 190px;
    height: 190px;
    padding: 6px;
    border-radius: 8px;
}

/* QRCode.js will inject a canvas inside .qrCode, so we ensure it fits */
.qrCode canvas {
    width: 100% !important;
    height: 100% !important;
}

    /* Download button styling */
.button img {
    width: 140px;
    margin-top: 8px;
}

/* Optional hover effect on cards */
.app-card:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

/******************************/
/* Patternfly style overrides */
/******************************/

/* used for icons inserted within input boxes, indicating a wrong value or validation error.
   can't override via variables, as this style is simply not in the patternfly ones */
.pf-v5-v5-c-form-control__utilities {
    padding: 1px 6px;
}

/* contains form actions, usually a primary or primary + default button */
.pf-v5-v5-c-form__actions {
    flex-direction: column;
    width: 100%;
}

.fa-2x {
    font-size: 1.5rem;
}

/* Root container */
.phone {
    width: 340px;
    height: 500px;
    border-radius: 40px;
    padding: 14px 0px;
    position: relative;
}

/* Fake notch */
.phone::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: rgba(31, 33, 40, 1);
    border-radius: 12px;
}

/* Screen */
.phone .screen {
    height: 100%;
    border-radius: 30px 30px 0px 0px;
    padding: 12px 5px 5px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(62 63 75);
    border-bottom: 0;
}

/* QR section wrapper */
.phone .screen .qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

/* Info section */
.phone .screen .info {
    margin:40px 20px;
    font-size: 14px;
    color: #94a3b8;
}

/* Row layout */
.phone .screen .info .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* Remove first border */
.phone .screen .info .row:first-child {
    border-top: none;
}

/* Labels (left side) */
.phone .screen .info .row .label {
    color: #94a3b8;
}

/* Values (right side) */
.phone .screen .info .row .value {
    color: #fff;
    font-weight: 500;
}

/* Status bar */
.phone .screen .status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 24px;
    font-size: 14px;
    margin-bottom: 16px;
    color: #e2e8f0;
}

/* Time (left) */
.phone .screen .status-bar .time {
    font-weight: bold;
    color: rgb(67 67 67);
}

/* Icons (right) */
.phone .screen .status-bar .status-icons {
    display: flex;
    gap: 8px;
    font-size: 11px; /* controls icon size */
}

.phone .screen .status-bar .status-icons i{
    color: rgb(67 67 67);
}

/* QR container must be relative */
.phone .screen .qr-container {
    position: relative;
}

/* Overlay */
.phone .screen .qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 2;
}

/* Loader icon */
.phone .screen .qr-overlay i {
    font-size: 50px;
    color: #e2e8f0;
}

/* Hidden state */
.phone .screen .qr-overlay.hidden {
    display: none;
}

.phone .screen .qr-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.complete-setup-container{
    width: 100%;
    text-align: center;
}

.complete-setup-container .asset-container img {
    width: 50%;
}

.complete-setup-container p {
    font-size: 2rem !important;
    color: #FFF !important;
    font-weight: 300 !important;
    margin-bottom: 20px;
}


.complete-setup-container span {
    font-size: 1.3rem;
    color: rgba(178, 179, 189, 1);
    font-weight: 300;
}

/* ========================= */
/* MOBILE LAYOUT OVERRIDES   */
/* ========================= */

@media (max-width: 480px) {

    /* Toggle layouts */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }

    /* Mobile card layout */
    .mobile-card {
        width: 100% !important;
        max-width: 320px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem !important;
        border-radius: 16px !important;
        gap: 0.5rem;
    }

    /* Left side (icon + text stacked) */
    .mobile-card .left {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    /* Slightly smaller icon */
    .mobile-card .apple-icon img,
    .mobile-card .google-icon img {
        width: 24px !important;
        height: 24px !important;
    }

    /* Text under icon */
    .mobile-card h3 {
        margin: 0 !important;
        margin-top: 5px !important;
        text-align: center !important;
    }

    /* QR code on the right */
    .mobile-card .qrCode {
        width: 80px !important;
        height: 80px !important;
        padding: 4px !important;
    }

    .mobile-card .qrCode img,
    .mobile-card .qrCode canvas {
        width: 100% !important;
        height: 100% !important;
    }

    .phone {
        height: 345px !important;
    }

    .qrCode {
        width: 100px !important;
        height: 100px !important;
    }

}