/* ======================================================
   Observer UI
   Dark dashboard visual language
   ====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Montserrat', "Segoe UI", sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    background: #151515;

    color: #ededee;

    display: flex;
    justify-content: center;
}


/* ======================================================
   Main Container
   ====================================================== */

.container {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
}


/* ======================================================
   Login / Authentication
   ====================================================== */

.login-container-content {
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.login-container {
    display: grid;
    align-content: start;
    padding: 20px;
    width: 400px;
    min-height: 0px;
    height: fit-content;
    background-color: #333639;
    border-radius: 15px;
}

.create-account-title {
    font-weight: bold;
    font-size: 1.5em;
    color: #ffffff;
}

.logo-area {
    text-align: center;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 72px;
}

.logo-area h1 {
    font-size: 52px;
    color: #ffffff;
    margin-bottom: 10px;
}

.logo-area p {
    color: #929298;
    font-size: 18px;
    line-height: 1.4;
}

h2 {
    color: #ffffff;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #b5b5bb;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    height: 52px;

    border: 1px solid #36363b;
    border-radius: 9px;

    padding: 10px 12px;

    background: #202023;
    color: #ffffff;

    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-group input:focus {
    border-color: #8f52e8;

    background: #8b8b8b;

    box-shadow:
        0 0 0 3px rgba(143, 82, 232, .14);
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #a46cf5;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    height: 48px;

    border: none;
    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #7a3fe0,
        #5f2ec5
    );

    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(111, 52, 213, .20);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        opacity .15s ease;
}

.btn-primary:hover {
    opacity: .96;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(111, 52, 213, .28);
}

.separator {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #343438;
}

.separator span {
    margin: 0 15px;
    color: #77777e;
}

.btn-secondary {
    width: 100%;
    height: 48px;

    border: 1px solid #6f3bd1;
    border-radius: 9px;

    background: transparent;
    color: #a46cf5;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.about-link {
    display: block;
    text-align: center;

    margin-top: 35px;

    color: #a46cf5;
    font-weight: 600;
    text-decoration: none;
}


/* ======================================================
   Toast
   ====================================================== */

.toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    transform: translateX(-50%);

    min-width: 280px;
    max-width: 90%;

    padding: 14px 18px;

    background: #d83a4b;
    color: #fff;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 500;

    text-align: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;

    z-index: 9999;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .25);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #2ca56a;
}

.toast.error {
    background: #d83a4b;
}

.toast.warning {
    background: #d9952d;
}

.error {
    border-color: #d83a4b !important;
}


/* ======================================================
   Mouse Click Effect
   ====================================================== */

div.clickEffect {
    position: fixed;
    box-sizing: border-box;
    border-style: solid;
    border-color: #a46cf5;
    border-radius: 50%;

    animation: clickEffect 0.4s ease-out;

    z-index: 99999;
}

@keyframes clickEffect {
    0% {
        opacity: 1;
        width: 1px;
        height: 1px;
        margin: -0.5px;
        border-width: 0.5rem;
    }

    100% {
        opacity: 0.2;
        width: 40px;
        height: 40px;
        margin: -20px;
        border-width: 0.03rem;
    }
}


/* ======================================================
   Messages
   ====================================================== */

.registerReturn {
    margin-bottom: 20px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;

    padding: 8px;

    border-radius: 9px;

    text-align: center;
}

.errorMessage {
    border: 1px solid #d83a4b;
    background-color: rgba(216, 58, 75, .14);
    color: #ffb7bf;
}

.successMessage {
    border: 1px solid #2ca56a;
    background-color: rgba(44, 165, 106, .14);
    color: #8ce0b7;
}

.displayNone {
    display: none;
}


/* ======================================================
   User Profile / Onboarding
   ====================================================== */

.progress-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #303035;
    color: #9999a1;

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

    font-weight: 600;
}

.step.completed .circle,
.step.active .circle {
    background: #7a3fe0;
    color: #fff;
}

.step span {
    margin-top: 10px;
    font-size: 14px;
    color: #85858d;
    text-align: center;
}

.step.active span {
    color: #a46cf5;
    font-weight: 600;
}

.line {
    width: 60px;
    height: 2px;

    background: #303035;

    margin-top: 20px;
}

.line.active {
    background: #7a3fe0;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;

    text-align: center;

    margin-bottom: 15px;
}

.page-description {
    color: #929298;

    text-align: center;
    line-height: 1.6;

    margin-bottom: 10px;

    font-size: 18px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    color: #77777f;
}

.input-icon input {
    padding-left: 50px;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 10px 0;

    color: #85858d;
    line-height: 1.5;
}

.security-note i {
    color: #a46cf5;
    font-size: 22px;
}

.btn-link {
    width: 100%;

    border: none;
    background: transparent;

    margin-top: 20px;

    color: #a46cf5;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.btn-link:hover {
    opacity: .8;
}


/* ======================================================
   Register Success
   ====================================================== */

.success-icon-container {
    display: flex;
    justify-content: center;
}

.success-circle {
    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: rgba(122, 63, 224, 0.10);

    display: flex;
    align-items: center;
    justify-content: center;
}

.success-check {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #7a3fe0,
        #5f2ec5
    );

    display: flex;
    align-items: center;
    justify-content: center;
}

.success-check i {
    color: white;
    font-size: 30px;
}

.success-title {
    text-align: center;

    color: #ffffff;

    font-size: 2.3em;
    font-weight: 700;
}

.success-description {
    text-align: center;

    color: #929298;

    font-size: 1.2em;
    line-height: 1.7;
}

.success-description.secondary {
    margin-bottom: 15px;
}

.success-description strong {
    color: #a46cf5;
}

.btn-primary i {
    margin-right: 10px;
}

.success-security {
    justify-content: center;
    text-align: center;

    margin-top: 40px;
    padding-bottom: 20px;
}


/* ======================================================
   Top Bar
   ====================================================== */

.TopBar {
    height: 50px;

    display: flex;
    align-items: center;

    padding-right: 6px;

    width: 100%;

    background: #1a1a1b;

    border-bottom: 1px solid #2d2d30;

    box-sizing: border-box;

    justify-content: flex-start;
}


/* ======================================================
   Menu Button
   ====================================================== */

.menu-container {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    background-image: url('../assets/img/icons/menu.webp');

    background-size: 48% 42%;
    background-repeat: no-repeat;
    background-position: center;

    cursor: pointer;

    transition:
        background-color .15s ease;
}

.menu-container:hover {
    background-color: #242426;
}

.dropdown-toggle {
    width: 50px;
    height: 50px;

    background-size: 55% 55%;
    background-repeat: no-repeat;
    background-position: center;
}


/* ======================================================
   Sidebar Menu
   ====================================================== */

.dropdown-menu {
    position: absolute;

    z-index: 50;

    width: 230px;

    max-height: 0;

    overflow: hidden;

    scrollbar-width: none;

    opacity: 0;

    transform: translateY(-5px);

    transition:
        max-height .25s ease,
        opacity .2s ease,
        transform .2s ease;

    background: #1d1d1f;

    border-right: 1px solid #343438;
    border-bottom: 1px solid #343438;

    border-radius: 0 0 10px 0;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .35);
}

.dropdown-menu::-webkit-scrollbar {
    display: none;
}

.dropdown-menu.open {
    max-height: calc(100vh - 50px);

    opacity: 1;

    transform: translateY(0);

    padding: 8px;

    z-index: 99999;

    overflow-y: auto;
}


/* ======================================================
   Sidebar Menu Item
   ====================================================== */

.topBarMenuItem {
    height: 46px;

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

    padding: 0 11px;

    margin-bottom: 3px;

    background: transparent;

    border-radius: 8px;

    color: #b8b8bf;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.topBarMenuItem:hover {
    background: rgba(122, 63, 224, .12);
    color: #ffffff;
}

.topBarMenuItem.active {
    background: rgba(122, 63, 224, .20);

    color: #ffffff;

    box-shadow:
        inset 3px 0 0 #9a62f1;
}


/* ======================================================
   Menu Item Context
   ====================================================== */

.menuItemContext {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* ======================================================
   Menu Item Text
   ====================================================== */

.topBarMenuItemText {
    height: auto;

    display: flex;
    align-items: center;

    font-weight: 600;

    font-size: 13px;

    letter-spacing: 0;

    color: inherit;

    pointer-events: none;
}


/* ======================================================
   Menu Icons
   ====================================================== */

.topBarMenuIconContainer {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    width: 23px;
    height: 23px;

    margin: 0;

    flex-shrink: 0;

    opacity: .82;

    pointer-events: none;
}

.topBarMenuAccessIcon {
    background-size: 45% 45%;
    background-repeat: no-repeat;
    background-position: center;

    width: 26px;
    height: 26px;

    opacity: .45;

    pointer-events: none;
}


/* ======================================================
   Top Bar Menu Icons
   ====================================================== */

.icon-Install {
    background-image: url("../assets/img/icons/install.webp");
}

.icon-Logoff {
    background-image: url("../assets/img/icons/logoff.webp");
}


/* ======================================================
   Main Container
   ====================================================== */

.main-container {
    display: flex;
    flex-direction: column;

    height: 100%;

    min-height: 0;

    background: #151515;
}

.main-container-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    flex: 1;
    min-height: 0;

    box-sizing: border-box;

    background: #151515;

    height: calc(100vh - 52px);
    overflow: hidden;
    box-sizing: border-box;
}

.main-container-content::-webkit-scrollbar {
    width: 7px;
}

.main-container-content::-webkit-scrollbar-track {
    background: #151719;
}

.main-container-content::-webkit-scrollbar-thumb {
    background: #343a42;
    border-radius: 10px;
}

.main-container-content::-webkit-scrollbar-thumb:hover {
    background: #454d57;
}



/* ======================================================
   Generic Content
   ====================================================== */

.section {
    display: flex;

    width: 100%;

    justify-content: center;

    padding: 20px;

    flex-direction: row;
    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.slider-container {
    height: stretch;
    width: stretch;

    display: flex;

    overflow: auto;

    scrollbar-width: none;

    flex-wrap: nowrap;
}

.slider-content {
    min-height: 400px;

    display: flex;

    background-size: 100% 100%;
    background-repeat: no-repeat;

    border-radius: 12px;

    min-width: 100%;
    width: 100%;
}

.section-text {
    display: flex;
    flex-wrap: wrap;

    width: 100%;

    text-align: center;

    gap: 20px;

    justify-content: center;
}

.banner {
    display: flex;
    width: 100%;
}

.banner-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    width: 100%;
    height: 200px;
}


/* ======================================================
   Features
   ====================================================== */

.icon-container {
    display: flex;

    width: 120px;

    gap: 10px;

    flex-wrap: wrap;
}

.icon-image-container {
    width: 120px;
    height: 120px;

    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

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


/* ======================================================
   Bio Sections
   Existing structure retained, darkened to match theme
   ====================================================== */

.bio-introduction {
    width: 100%;

    background-color: #202022;

    padding: 40px 60px;

    box-sizing: border-box;

    color: #ffffff;
}

.bio-introduction-container {
    max-width: 1200px;
    margin: 0 auto;

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

    gap: 60px;
}

.bio-introduction-content {
    flex: 1;
    max-width: 650px;
}

.bio-introduction-title {
    color: #a46cf5;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;

    margin-bottom: 45px;
}

.bio-introduction-text {
    color: #d0d0d5;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

.bio-introduction-image-container {
    width: 285px;
    height: 285px;

    flex-shrink: 0;

    border-radius: 50%;

    overflow: hidden;
}

.bio-introduction-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* ======================================================
   Bio Steps
   ====================================================== */

.bio-step-section {
    width: 100%;

    background: transparent;

    box-sizing: border-box;

    padding: 35px 32px 45px;

    color: #ededee;
}

.bio-step-introduction {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;

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

    gap: 70px;
}

.bio-step-introduction-content {
    flex: 1;
}

.bio-step-label {
    display: inline-block;

    padding: 6px 10px;

    background-color: #2a2a2d;
    color: #ffffff;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    margin-bottom: 25px;
}

.bio-step-description {
    color: #d0d0d5;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;

    margin-bottom: 30px;
}

.bio-step-button {
    width: 317px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 12px;

    padding: 0 22px;

    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #7a3fe0,
        #5f2ec5
    );

    color: #ffffff;

    border-radius: 9px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.bio-step-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(111, 52, 213, .25);
}

.bio-step-button-icon {
    font-size: 25px;
    line-height: 1;
}

.bio-step-main-image {
    width: 305px;
    height: 305px;

    flex-shrink: 0;

    overflow: hidden;

    margin-bottom: 30px;

    border-radius: 12px;
}

.bio-step-main-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.bio-step-howto {
    width: 100%;
    max-width: 1150px;

    margin: 55px auto 0;
}

.bio-step-section-title {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 42px;
}

.bio-step-section-line {
    flex: 1;

    height: 1px;

    background-color: #36363a;
}

.bio-step-section-title-text {
    flex-shrink: 0;

    font-size: 20px;
    font-weight: 700;

    color: #ffffff;

    white-space: nowrap;
}

.bio-step-list {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.bio-step-item {
    min-width: 0;
}

.bio-step-item-title {
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 12px;
}

.bio-step-number {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

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

    background-color: #7a3fe0;
    color: #ffffff;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;
}

.bio-step-item-title-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;

    color: #ffffff;
}

.bio-step-item-image {
    width: 100%;

    aspect-ratio: 1.55 / 1;

    overflow: hidden;

    border-radius: 10px;

    margin-bottom: 12px;
}

.bio-step-item-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.bio-step-item-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;

    color: #b7b7be;
}

.bio-step-complete {
    width: 100%;
    max-width: 332px;

    min-height: 68px;

    margin: 42px auto 0;

    padding: 10px 15px 10px 22px;

    box-sizing: border-box;

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

    gap: 15px;

    background: #242427;
    color: #ffffff;

    border: 1px solid #37373b;

    border-radius: 12px;
}

.bio-step-complete-content {
    flex: 1;
}

.bio-step-complete-title {
    font-size: 16px;
    font-weight: 700;

    margin-bottom: 2px;
}

.bio-step-complete-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;

    color: #a5a5ac;
}

.bio-step-complete-button {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

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

    border: 1px solid #6f6f77;

    background: transparent;
    color: #ffffff;

    border-radius: 50%;

    font-size: 22px;
    font-weight: 300;

    cursor: pointer;

    transition: .2s ease;
}

.bio-step-complete-button:hover {
    background-color: #7a3fe0;
    border-color: #7a3fe0;
}


/* ======================================================
   Checklist
   ====================================================== */

.bio-checklist {
    width: 100%;
    max-width: 700px;

    margin: 45px auto 0;

    padding: 42px 62px;

    box-sizing: border-box;

    background: #202022;

    border: 1px solid #37373b;
    border-radius: 18px;

    color: #d0d0d5;
}

.bio-checklist-title {
    color: #a46cf5;

    font-size: 30px;
    font-weight: 700;
    line-height: 1;

    margin-bottom: 14px;
}

.bio-checklist-items {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.bio-checklist-item {
    display: flex;
    align-items: center;

    color: #d0d0d5;

    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.bio-checklist-checkbox {
    width: 21px;

    flex-shrink: 0;

    margin-right: 2px;

    color: #a46cf5;

    font-size: 22px;
    line-height: 1;
}


/* ======================================================
   Responsive
   ====================================================== */

@media (max-width: 768px) {

    .bio-introduction {
        padding: 40px 25px;
    }

    .bio-introduction-container {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .bio-introduction-content {
        max-width: none;
    }

    .bio-introduction-title {
        font-size: 21px;
        margin-bottom: 25px;
    }

    .bio-introduction-text {
        font-size: 15px;
    }

    .bio-introduction-image-container {
        width: 220px;
        height: 220px;
    }

    .bio-step-section {
        padding: 30px 20px 40px;
    }

    .bio-step-introduction {
        flex-direction: column;
        align-items: stretch;

        gap: 35px;
    }

    .bio-step-introduction-content {
        max-width: none;
    }

    .bio-step-main-image {
        width: 100%;
        max-width: 305px;

        height: auto;
        aspect-ratio: 1 / 1;

        margin: 0 auto 30px;
    }

    .bio-step-howto {
        margin-top: 45px;
    }

    .bio-step-list {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .bio-step-section-title {
        margin-bottom: 30px;
    }

    .bio-step-section-title-text {
        font-size: 18px;
    }

    .bio-step-button {
        width: 100%;
        max-width: 317px;
    }

    .bio-step-complete {
        max-width: 100%;
        margin-top: 40px;
    }

    .bio-checklist {
        max-width: 100%;
        margin-top: 35px;
        padding: 30px 25px;
        border-radius: 16px;
    }

    .bio-checklist-title {
        font-size: 25px;
        margin-bottom: 15px;
    }

    .bio-checklist-item {
        align-items: flex-start;
        font-size: 16px;
    }

    .bio-checklist-checkbox {
        font-size: 19px;
        margin-top: 1px;
    }
}


/* ======================================================
   MFA Login - Phase 4
   ====================================================== */

.login-mfa-container {
    width: min(430px, calc(100vw - 32px));
}

.login-mfa-logo-area {
    margin-bottom: 22px;
}

.login-mfa-logo-area .logo-icon {
    display: none;
}

.login-mfa-shield {
    width: 68px;
    height: 68px;
    margin: 4px auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(143, 82, 232, .35);
    background: rgba(122, 63, 224, .14);
    color: #a46cf5;
    font-size: 28px;
}

.login-mfa-logo-area h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.login-mfa-title {
    margin: 0 0 8px;
    font-size: 21px;
}

.login-mfa-help {
    display: block;
    margin-top: 8px;
    color: #929298;
    font-size: 12px;
    line-height: 1.5;
}

.login-mfa-back {
    margin-top: 10px;
}

.login-mfa-container .btn-primary i,
.login-mfa-container .btn-secondary i {
    margin-right: 7px;
}
