* {
    box-sizing: border-box;
}


/* =========================================================
   GLOBAL
========================================================= */

body {
    margin: 0;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #f4f7fb 0%,
            #eef3f9 100%
        );

    color: #172033;

    min-height: 100vh;
}


.page-shell {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.topbar {
    height: 78px;

    background: #ffffff;

    border-bottom:
        1px solid #dce3ec;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0 42px;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.04);
}


.brand {
    display: flex;

    align-items: center;

    gap: 14px;
}


.brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 700;

    letter-spacing: 1px;
}


.brand-title {
    font-weight: 650;

    font-size: 18px;
}


.brand-subtitle {
    font-size: 12px;

    color: #697386;

    margin-top: 2px;
}


.demo-badge {
    background: #fff4d8;

    color: #8b6400;

    font-size: 12px;

    font-weight: 700;

    padding:
        7px 12px;

    border-radius: 20px;

    border:
        1px solid #f0d995;
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
    width: 100%;

    max-width: 820px;

    margin:
        42px auto;

    padding:
        0 20px;

    flex: 1;
}


/* =========================================================
   FIVE STEP INDICATOR
========================================================= */

.step-indicator {
    display: flex;

    justify-content: center;

    align-items: flex-start;

    margin-bottom: 32px;

    width: 100%;
}


.step {
    width: 88px;

    text-align: center;

    color: #9aa3b1;

    flex-shrink: 0;
}


.step-number {
    width: 36px;
    height: 36px;

    margin: auto;

    border-radius: 50%;

    border:
        2px solid #ccd4df;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.25s,
        border-color 0.25s,
        color 0.25s;
}


.step-label {
    margin-top: 7px;

    font-size: 11px;

    font-weight: 600;

    white-space: nowrap;
}


.step.active {
    color: #2563eb;
}


.step.active
.step-number {
    background: #2563eb;

    color: white;

    border-color: #2563eb;
}


.step.complete {
    color: #15803d;
}


.step.complete
.step-number {
    background: #15803d;

    border-color: #15803d;

    color: white;
}


.step.complete
.step-number::after {
    content: "✓";

    font-size: 15px;
}


.step.complete
.step-number {
    font-size: 0;
}


.step-line {
    height: 2px;

    width: 48px;

    background: #d7dee8;

    margin-top: 18px;

    flex-shrink: 1;

    transition:
        background 0.25s;
}


/* =========================================================
   CARD
========================================================= */

.card {
    background: #ffffff;

    border:
        1px solid #dde4ed;

    border-radius: 18px;

    padding: 42px;

    box-shadow:
        0 12px 35px
        rgba(30, 50, 80, 0.08);

    animation:
        fadeIn 0.35s ease;
}


.hidden {
    display: none !important;
}


.hero-icon {
    font-size: 44px;

    text-align: center;

    margin-bottom: 15px;
}


h1 {
    text-align: center;

    margin:
        5px 0 12px;

    font-size: 28px;

    line-height: 1.25;
}


h3 {
    color: #263448;
}


.description {
    text-align: center;

    color: #657083;

    line-height: 1.55;

    margin-bottom: 28px;
}


.notice {
    background: #f6f8fb;

    border-left:
        4px solid #2563eb;

    padding:
        14px 16px;

    border-radius: 7px;

    font-size: 13px;

    color: #4f5b6b;

    margin-bottom: 28px;

    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 20px;
}


label {
    display: block;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 8px;
}


input {
    width: 100%;

    padding:
        14px 15px;

    border:
        1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 15px;

    outline: none;

    transition: 0.2s;

    background: #ffffff;

    color: #172033;
}


input::placeholder {
    color: #9ba5b3;
}


input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.12);
}


.input-help {
    color: #7a8494;

    font-size: 12px;

    margin-top: 7px;

    line-height: 1.4;
}


.input-error {
    color: #b91c1c;

    font-size: 12px;

    margin-top: 6px;

    min-height: 16px;

    line-height: 1.4;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.secondary-button,
.copy-button {
    width: 100%;

    border: none;

    border-radius: 8px;

    padding: 14px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.1s;
}


.primary-button {
    background: #2563eb;

    color: white;
}


.primary-button:hover:not(:disabled) {
    background: #1d4ed8;
}


.primary-button:active:not(:disabled) {
    transform: translateY(1px);
}


.primary-button:disabled {
    background: #aeb8c6;

    color: #f7f9fb;

    cursor: not-allowed;

    opacity: 0.75;
}


.secondary-button {
    background: #eef2f7;

    color: #263448;

    border:
        1px solid #d7dee8;

    margin-top: 10px;
}


.secondary-button:hover {
    background: #e3e9f1;
}


.copy-button {
    background: #eef4ff;

    color: #1e5ab7;

    margin:
        18px 0;
}


.copy-button:hover {
    background: #e1ebff;
}


/* =========================================================
   CONSENT - ENTRA IDENTITY
========================================================= */

.consent-identity-box {
    background: #f8fafc;

    border:
        1px solid #d9e1ea;

    border-radius: 10px;

    padding: 22px;

    margin:
        25px 0;
}


.consent-user-title {
    color: #2563eb;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    margin-bottom: 15px;
}


.consent-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 25px;

    padding:
        9px 0;

    font-size: 14px;

    border-bottom:
        1px solid #edf0f4;
}


.consent-row:last-child {
    border-bottom: none;
}


.consent-row span {
    color: #697386;

    flex-shrink: 0;
}


.consent-row strong {
    text-align: right;

    word-break: break-word;
}


.status-active {
    color: #15803d;
}


/* =========================================================
   PRIVACY NOTICE
========================================================= */

.privacy-notice {
    background: #f8fafc;

    border:
        1px solid #d9e1ea;

    border-radius: 10px;

    padding:
        22px 24px;

    margin:
        25px 0;

    line-height: 1.55;
}


.privacy-notice h3 {
    text-align: center;

    margin:
        0 0 14px;

    font-size: 18px;
}


.privacy-notice p {
    color: #4f5b6b;

    margin:
        10px 0;

    font-size: 14px;
}


.demo-notice {
    margin-top: 16px !important;

    padding-top: 14px;

    border-top:
        1px solid #e3e8ef;

    color: #7a8494 !important;

    font-size: 12px !important;
}


/* =========================================================
   CONSENT CHECKBOX
========================================================= */

.consent-checkbox {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin:
        28px 0;

    line-height: 1.5;

    cursor: pointer;

    font-size: 14px;

    font-weight: 500;

    color: #263448;
}


.consent-checkbox input {
    width: 20px;

    height: 20px;

    padding: 0;

    margin:
        2px 0 0;

    flex-shrink: 0;

    cursor: pointer;

    accent-color: #2563eb;
}


.consent-checkbox span {
    flex: 1;
}


.button-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-top: 22px;
}


.button-row
.primary-button,
.button-row
.secondary-button {
    width: auto;

    min-width: 165px;

    margin: 0;
}


.button-row
.secondary-button {
    background: white;

    border:
        1px solid #2563eb;

    color: #2563eb;
}


.button-row
.secondary-button:hover {
    background: #f4f7ff;
}


/* =========================================================
   VERIFICATION
========================================================= */

.verification-header {
    height: 72px;

    display: flex;

    justify-content: center;

    align-items: center;
}


.spinner {
    width: 52px;

    height: 52px;

    border:
        5px solid #dfe7f2;

    border-top-color: #2563eb;

    border-radius: 50%;

    animation:
        spin 1s linear infinite;
}


.success-check {
    width: 56px;

    height: 56px;

    border-radius: 50%;

    background: #15803d;

    color: white;

    font-size: 32px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-weight: bold;
}


.verification-list {
    margin:
        28px 0;
}


.verification-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding:
        14px 4px;

    border-bottom:
        1px solid #edf0f4;
}


.verification-status {
    width: 27px;

    color: #9aa3b1;

    font-size: 20px;

    font-weight: bold;

    flex-shrink: 0;
}


.verification-item.complete
.verification-status {
    color: #15803d;
}


.verification-name {
    font-weight: 600;

    font-size: 14px;
}


.verification-detail {
    color: #7a8494;

    font-size: 12px;

    margin-top: 3px;
}


.identity-result {
    background: #edf9f0;

    color: #146c2e;

    border:
        1px solid #bde8c7;

    border-radius: 8px;

    padding: 14px;

    text-align: center;

    margin-bottom: 20px;

    line-height: 1.5;
}


/* =========================================================
   SUCCESS ICON
========================================================= */

.success-circle {
    width: 62px;

    height: 62px;

    margin:
        0 auto 15px;

    background: #15803d;

    border-radius: 50%;

    color: white;

    font-size: 34px;

    font-weight: bold;

    display: flex;

    justify-content: center;

    align-items: center;
}


/* =========================================================
   TAP RESULT
========================================================= */

.credential-box {
    background: #f8fafc;

    border:
        1px solid #dde5ef;

    border-radius: 12px;

    padding: 25px;

    margin:
        26px 0;
}


.credential-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}


.credential-label {
    color: #657083;

    font-size: 13px;
}


.credential-value {
    font-weight: 600;

    word-break: break-all;

    text-align: right;
}


.divider {
    height: 1px;

    background: #e1e7ef;

    margin:
        20px 0;
}


.tap-label {
    text-align: center;

    color: #657083;

    font-size: 13px;

    font-weight: 600;
}


.tap-value {
    text-align: center;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 34px;

    letter-spacing: 3px;

    font-weight: 700;

    margin:
        12px 0 5px;

    color: #15233b;

    word-break: break-all;
}


.tap-metadata {
    display: flex;

    justify-content: space-between;

    margin-top: 8px;

    gap: 20px;

    font-size: 13px;
}


.metadata-label {
    color: #7b8492;

    margin-right: 5px;
}


/* =========================================================
   INSTRUCTIONS
========================================================= */

.instructions {
    margin-top: 30px;

    margin-bottom: 28px;
}


.instructions h3 {
    margin-bottom: 17px;
}


.instruction-item {
    display: flex;

    gap: 13px;

    align-items: flex-start;

    margin:
        14px 0;

    line-height: 1.45;

    color: #4c5868;
}


.instruction-number {
    min-width: 28px;

    height: 28px;

    background: #e9f1ff;

    color: #1e5ab7;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 12px;
}


/* =========================================================
   SECURITY WARNING
========================================================= */

.security-warning {
    background: #fff7ed;

    color: #9a4d10;

    border:
        1px solid #fed7aa;

    padding:
        16px 18px;

    border-radius: 8px;

    margin:
        25px 0;

    font-size: 13px;

    line-height: 1.55;
}


.security-warning strong {
    color: #8d410d;
}


/* =========================================================
   ONBOARDING SUMMARY
========================================================= */

.onboarding-summary {
    background: #f8fafc;

    border:
        1px solid #dde5ef;

    border-radius: 12px;

    padding:
        22px 24px;

    margin:
        26px 0;
}


.onboarding-summary h3 {
    margin:
        0 0 16px;

    font-size: 17px;

    color: #263448;
}


.summary-row {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 25px;

    padding:
        11px 0;

    border-bottom:
        1px solid #e7ebf0;

    font-size: 14px;
}


.summary-row:last-child {
    border-bottom: none;
}


.summary-row span {
    color: #697386;

    flex-shrink: 0;
}


.summary-row strong {
    text-align: right;

    color: #263448;

    word-break: break-word;
}


.summary-success {
    color: #15803d !important;
}


.summary-ready {
    color: #2563eb !important;

    font-weight: 700;

    letter-spacing: 0.4px;
}


/* =========================================================
   SUMMARY NEXT STEP
========================================================= */

.summary-next-step {
    background: #eef4ff;

    border:
        1px solid #cdddfb;

    border-left:
        4px solid #2563eb;

    border-radius: 10px;

    padding:
        20px 22px;

    margin:
        26px 0;
}


.summary-next-step h3 {
    margin:
        0 0 10px;

    color: #1e5ab7;

    font-size: 17px;
}


.summary-next-step p {
    margin:
        8px 0;

    color: #45556d;

    font-size: 14px;

    line-height: 1.55;
}


/* =========================================================
   ERROR
========================================================= */

.error-circle {
    width: 60px;

    height: 60px;

    margin:
        0 auto 20px;

    background: #b91c1c;

    color: white;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 34px;

    font-weight: bold;
}


.error-message {
    color: #9b2929;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    text-align: center;

    padding:
        15px 20px 25px;

    color: #8a94a3;

    font-size: 12px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


@keyframes fadeIn {

    from {
        opacity: 0;

        transform:
            translateY(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .step {
        width: 70px;
    }


    .step-line {
        width: 32px;
    }


    .step-label {
        font-size: 10px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .topbar {
        padding:
            0 18px;
    }


    .brand-title {
        font-size: 16px;
    }


    .brand-subtitle {
        display: none;
    }


    .demo-badge {
        font-size: 10px;

        padding:
            6px 9px;
    }


    .main-content {
        margin-top: 25px;

        padding:
            0 14px;
    }


    .card {
        padding:
            28px 20px;
    }


    h1 {
        font-size: 23px;
    }


    /*
     * Keep five-step indicator usable
     * on smaller screens.
     */

    .step-indicator {
        overflow-x: auto;

        justify-content: flex-start;

        padding:
            2px 5px 10px;
    }


    .step {
        width: 62px;
    }


    .step-number {
        width: 32px;

        height: 32px;

        font-size: 12px;
    }


    .step-line {
        width: 25px;

        min-width: 25px;

        margin-top: 16px;
    }


    .step-label {
        font-size: 9px;
    }


    .consent-row {
        flex-direction: column;

        gap: 3px;
    }


    .consent-row strong {
        text-align: left;
    }


    .privacy-notice {
        padding:
            18px;
    }


    .button-row {
        flex-direction: column-reverse;

        gap: 12px;
    }


    .button-row
    .primary-button,
    .button-row
    .secondary-button {
        width: 100%;

        min-width: 0;
    }


    .credential-row {
        flex-direction: column;

        align-items: flex-start;

        gap: 6px;
    }


    .credential-value {
        text-align: left;
    }


    .tap-value {
        font-size: 26px;

        letter-spacing: 2px;
    }


    .tap-metadata {
        flex-direction: column;

        gap: 8px;
    }


    .summary-row {
        flex-direction: column;

        gap: 4px;
    }


    .summary-row strong {
        text-align: left;
    }


    .onboarding-summary {
        padding:
            20px 18px;
    }


    .summary-next-step {
        padding:
            18px;
    }

}
