﻿/* =========================================================
   MŮJBYŤÁK – SHARED COMPONENTS
   ========================================================= */

:root {
    --mb-card-radius: 18px;
    --mb-card-bg: #FFFFFF;
    --mb-card-border: rgba(8, 18, 60, .06);
    --mb-card-shadow: 0 6px 18px rgba(8, 18, 60, .07);
    --mb-card-header-primary: #004C91;
    --mb-card-header-secondary: #F2F6FA;
    --mb-card-action-primary: #004C91;
    --mb-brand-orange: #F25E0D;
}


/* =========================================================
   CARD – ZÁKLADNÍ STANDARD
   ========================================================= */

.mb-card {
    background: var(--mb-card-bg);
    border: 1px solid var(--mb-card-border);
    border-radius: var(--mb-card-radius);
    box-shadow: var(--mb-card-shadow);
    overflow: hidden;
}

    .mb-card[hidden] {
        display: none !important;
    }

.mb-card-header {
    min-height: 48px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.mb-card-header--primary {
    background: var(--mb-card-header-primary);
    color: #FFFFFF;
}

.mb-card-header--secondary {
    background: var(--mb-card-header-secondary);
    color: var(--mb-card-header-primary);
    border-bottom: 1px solid rgba(8, 18, 60, .06);
}

.mb-card-inner {
    padding: 20px 24px 22px;
}


/* =========================================================
   CARD HEADER – IKONY
   ========================================================= */

.mb-card-header-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: block;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: .62;
}

.mb-card-header--primary .mb-card-header-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}


/* =========================================================
   CARD ACTION BUTTON – SPOLEČNÝ STANDARD
   ========================================================= */

.mb-btn-card-primary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 18px;
    border: 1px solid #0B5EA8;
    border-radius: 11px;
    background: #0B5EA8;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

    .mb-btn-card-primary:hover {
        background: var(--mb-brand-orange);
        border-color: var(--mb-brand-orange);
        color: #FFFFFF;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    }

    .mb-btn-card-primary:active {
        transform: translateY(1px);
    }

    .mb-btn-card-primary:focus-visible {
        outline: 3px solid rgba(0, 76, 145, .18);
        outline-offset: 2px;
    }

    .mb-btn-card-primary[aria-disabled="true"],
    .mb-btn-card-primary:disabled {
        background: #F8FAFC;
        color: #8A95A8;
        border-color: #D7DFEA;
        box-shadow: none;
        opacity: .72;
        cursor: not-allowed;
        pointer-events: none;
    }


/* =========================================================
   LOGIN – ZAROVNÁNÍ HLAVNÍHO OBSAHU
   ========================================================= */

.b365pro-main > .b365pro-container {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
}

.b365pro-main .b365pro-side {
    width: 340px;
    max-width: 340px;
    justify-self: end;
}


/* =========================================================
   LOGIN – PRAVÝ SLOUPEC
   ========================================================= */

.mb-login-side {
    display: grid;
    gap: 24px;
}

    .mb-login-side .mb-card-inner {
        padding: 14px 24px 22px;
    }


/* =========================================================
   LOGIN – FORMULÁŘ
   ========================================================= */

.mb-login-field {
    margin-bottom: 14px;
}

    .mb-login-field:last-of-type {
        margin-bottom: 8px;
    }

    .mb-login-field label {
        display: block;
        margin-bottom: 6px;
        color: #17213E;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
    }

.mb-login-side .b365pro-input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    background: #FFFFFF !important;
    color: #17213E;
    border: 1px solid #D9E2EC;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

    .mb-login-side .b365pro-input:hover {
        background: #FFFFFF !important;
        border-color: #C5D0DE;
    }

    .mb-login-side .b365pro-input:focus {
        background: #FFFFFF !important;
        border-color: #24A9CA;
        outline: none;
        box-shadow: 0 0 0 3px rgba(36, 169, 202, .12);
    }


/* =========================================================
   LOGIN – ZAPAMATOVAT PŘIHLÁŠENÍ
   ========================================================= */

.mb-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 18px;
    color: #44536D;
    font-size: 14px;
    line-height: 1.3;
}

    .mb-login-remember input {
        margin: 0;
        flex: 0 0 auto;
    }


/* =========================================================
   LOGIN – ODDĚLOVAČE AKCÍ
   ========================================================= */

.mb-login-divider {
    height: 1px;
    margin: 18px 0;
    background: rgba(8, 18, 60, .10);
}


/* =========================================================
   LOGIN – LEVÁ INFORMAČNÍ ČÁST
   ========================================================= */

.mb-login-service-grid {
    display: grid;
    gap: 24px;
}

.mb-login-info-card {
    position: relative;
}

    .mb-login-info-card .mb-card-inner {
        position: relative;
        z-index: 1;
        padding: 20px 24px 22px;
    }

    .mb-login-info-card h2 {
        margin: 0 0 9px;
        color: #08123C;
        font-size: 18px;
        font-weight: 650;
        line-height: 1.3;
    }

    .mb-login-info-card p {
        margin: 0;
        color: #63708A;
        font-size: 15px;
        line-height: 1.6;
    }


    /* =========================================================
   LOGIN – WATERMARK V INFORMAČNÍCH BOXECH
   ========================================================= */

    .mb-login-info-card::after {
        content: "";
        position: absolute;
        right: 22px;
        bottom: 12px;
        width: 100px;
        height: 100px;
        background-image: var(--mb-card-watermark);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        opacity: .035;
        pointer-events: none;
    }


/* =========================================================
   LOGIN – SERVISNÍ STAV
   ========================================================= */

.mb-service-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mb-service-status-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    background: #2E9D62;
    -webkit-mask-image: var(--mb-status-icon);
    mask-image: var(--mb-status-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}


/* =========================================================
   LOGIN – PODPORA
   ========================================================= */

.mb-login-support-link {
    display: inline-block;
    margin-top: 11px;
    color: var(--mb-card-header-primary);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

    .mb-login-support-link:hover {
        color: var(--mb-brand-orange);
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .b365pro-main > .b365pro-container {
        width: min(100% - 28px, 1180px);
    }

    .b365pro-main .b365pro-side {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {

    .mb-login-side {
        gap: 18px;
    }

    .mb-card-header {
        min-height: 46px;
        padding: 11px 18px;
        font-size: 16px;
    }

    .mb-card-inner,
    .mb-login-side .mb-card-inner,
    .mb-login-info-card .mb-card-inner {
        padding: 14px 18px 20px;
    }

    .mb-login-side .b365pro-input {
        min-height: 44px;
        font-size: 16px;
    }

    .mb-btn-card-primary {
        min-height: 44px;
    }

    .mb-login-info-card::after {
        right: 16px;
        bottom: 10px;
        width: 82px;
        height: 82px;
    }
}

/* =========================================================
   LOGIN – STICKY PRAVÝ PANEL
   ========================================================= */

@media (min-width: 901px) {

    /* Gridový řádek necháme podle výšky levého obsahu */
    .b365pro-main .b365pro-grid {
        align-items: start;
    }

    /* Celý pravý sloupec je sticky */
    .b365pro-main .b365pro-side {
        position: sticky;
        top: 104px;
        align-self: start;
        height: max-content;
        z-index: 10;
    }

    /* Uvnitř už žádné další sticky */
    .b365pro-main .b365pro-side-sticky {
        position: static !important;
        top: auto !important;
    }
}


/* =========================================================
   LOGIN – MOBIL / JEDEN SLOUPEC
   ========================================================= */

@media (max-width: 900px) {

    .b365pro-main .b365pro-side {
        position: static;
        top: auto;
        height: auto;
    }
}

/* =========================================================
   ACTIVATION
   ========================================================= */

.mb-activate-main {
    padding: 48px 0 64px;
    background: #F7F9FC;
}

.mb-activation-page {
    display: flex;
    justify-content: center;
}

.mb-activation-card {
    width: min(760px, 100%);
    background: #FFFFFF;
    border: 1px solid #E7EBF1;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(8, 18, 60, 0.08);
    overflow: hidden;
}

.mb-activation-header {
    padding: 30px 36px 20px;
}

    .mb-activation-header h1 {
        margin: 0 0 6px;
        font-size: 30px;
        line-height: 1.2;
        color: #08123C;
    }

    .mb-activation-header p {
        margin: 0;
        color: #667085;
        font-size: 15px;
    }

.mb-activation-steps {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: start;
    padding: 8px 42px 30px;
}

.mb-activation-step {
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #98A2B3;
    text-decoration: none;
}

.mb-activation-step-circle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #D9E0EA;
    background: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
}

.mb-activation-step-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.mb-activation-step.is-active {
    color: #0B5EA8;
}

    .mb-activation-step.is-active .mb-activation-step-circle {
        background: #0B5EA8;
        border-color: #0B5EA8;
        color: #FFFFFF;
    }

.mb-activation-step.is-complete {
    color: #16803C;
}

    .mb-activation-step.is-complete .mb-activation-step-circle {
        background: #16803C;
        border-color: #16803C;
        color: #FFFFFF;
    }

.mb-activation-step-line {
    height: 2px;
    margin-top: 18px;
    background: #D9E0EA;
}

    .mb-activation-step-line.is-complete {
        background: #16803C;
    }

.mb-activation-content {
    border-top: 1px solid #EEF1F5;
    padding: 30px 36px 36px;
}

    .mb-activation-content h2 {
        margin: 0 0 8px;
        color: #08123C;
        font-size: 22px;
    }

.mb-activation-intro,
.mb-activation-note {
    margin: 0 0 24px;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.mb-activation-form {
    display: grid;
    gap: 14px;
}

.mb-activation-field {
    display: grid;
    gap: 7px;
}

    .mb-activation-field label {
        font-size: 14px;
        font-weight: 600;
        color: #08123C;
    }

    .mb-activation-field input {
        width: 100%;
        height: 42px;
        padding: 0 14px;
        border: 1px solid #D5DCE7;
        border-radius: 11px;
        background: #FFFFFF;
        color: #08123C;
        font: inherit;
        outline: none;
    }

        .mb-activation-field input:focus {
            border-color: #24A9CA;
            box-shadow: 0 0 0 3px rgba(36, 169, 202, 0.12);
        }

.mb-activation-primary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid #0B5EA8;
    border-radius: 11px;
    background: #0B5EA8;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

    .mb-activation-primary-button:hover {
        background: #084C89;
        border-color: #084C89;
        color: #FFFFFF;
    }

.mb-activation-content-centered {
    text-align: center;
}

.mb-activation-mail-icon,
.mb-activation-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.mb-activation-mail-icon {
    background: #EAF7FB;
    color: #24A9CA;
}

.mb-activation-success-icon {
    background: #EAF7EE;
    color: #16803C;
}

@media (max-width: 700px) {

    .mb-activate-main {
        padding: 24px 14px 40px;
    }

    .mb-activation-card {
        border-radius: 18px;
    }

    .mb-activation-header,
    .mb-activation-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .mb-activation-steps {
        padding-left: 18px;
        padding-right: 18px;
    }

    .mb-activation-step {
        min-width: 72px;
    }

    .mb-activation-step-label {
        font-size: 11px;
        white-space: normal;
    }
}

.mb-btn-card-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 18px;
    border: 1px solid #24A9CA;
    border-radius: 11px;
    background: transparent;
    color: #24A9CA;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

    .mb-btn-card-secondary:hover {
        background: rgba(36, 169, 202, 0.10);
        border-color: #24A9CA;
        color: #24A9CA;
    }
