/* Beobank — sizing from official ei_* CSS (61.25rem content, #572381, tiles) */
@font-face {
    font-family: "MuseoSans";
    src: url("fonts/museosans-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MuseoSans";
    src: url("fonts/museosans-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Flex";
    src: url("fonts/roboto-flex.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --bb-purple: #572381;
    --bb-purple-dark: #250f36;
    --bb-red: #e2001a;
    --bb-itsme: #ff4612;
    --bb-text: #4c4e54;
    --bb-bg: #fcfcfc;
    --bb-wrap: 61.25rem; /* 980px */
    --bb-logo: 8.4375rem; /* 135px */
    --bb-control-h: 2.75rem; /* 44px */
    --bb-radius: 0.5rem;
    --bb-shadow: 0 0.25rem 0.813rem 0 rgba(25, 25, 25, 0.15);
    --bb-font: "MuseoSans", "Roboto Flex", "Segoe UI", Arial, sans-serif;
}

body.bank-beobank {
    margin: 0;
    font-family: var(--bb-font);
    background: var(--bb-bg);
    color: var(--bb-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bb-wrap {
    width: 100%;
    max-width: var(--bb-wrap);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Header */
.bb-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.bb-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 4.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.bb-logo {
    display: block;
    width: var(--bb-logo);
    height: auto;
}

.bb-lang {
    position: relative;
    margin-left: 0.625rem;
}

.bb-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 2rem;
    padding: 0.3125rem 0.5rem;
    border: 1px solid #fff;
    border-radius: 0.25rem;
    background: #fff;
    color: #4c4e54;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bb-lang__btn:hover,
.bb-lang.is-open .bb-lang__btn {
    color: #572381;
    border-color: #eee9f2;
    background: #eee9f2;
    box-shadow: 0 4px 3px 1px rgba(87, 34, 129, 0.1);
}

.bb-lang.is-open .bb-lang__btn {
    border-radius: 0.25rem 0.25rem 0 0;
    box-shadow: 0 4px 3px 1px rgba(87, 34, 129, 0.1);
}

.bb-lang__chev {
    display: block;
    transition: transform 0.2s ease;
}

.bb-lang.is-open .bb-lang__chev {
    transform: rotate(180deg);
}

.bb-lang__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 3.75rem;
    background: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 3px 1px rgba(87, 34, 129, 0.1);
    overflow: hidden;
}

.bb-lang.is-open .bb-lang__menu {
    display: block;
}

.bb-lang__menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #4c4e54;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    padding: 0.5rem 0.625rem;
    cursor: pointer;
}

.bb-lang__menu button:hover {
    background: #eee9f2;
    color: #572381;
}

.bb-lang__menu li:last-child button {
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

/* Main */
.bb-main {
    flex: 1;
    padding: 0.75rem 0 2rem;
}

.bb-main--login {
    display: block;
}

.bb-main--form {
    display: block;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.bb-main--form .bb-tiles {
    justify-content: center;
}

.bb-main--form .bb-page-title {
    text-align: center;
    max-width: 28.75rem;
    margin-left: auto;
    margin-right: auto;
}

.bb-tile--form {
    width: 100%;
    max-width: 28.75rem;
}

.bb-tile--form > h2,
.bb-tile--form > .bb-tile__title {
    margin: 0 0 0.75rem;
}

.bb-tile--form > p {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--bb-text);
}

.bb-simple-foot {
    border-top: 1px solid #e6e6e6;
    background: #fff;
    padding: 1rem 0;
    font-size: 0.75rem;
    color: #666;
}

.bb-page-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--bb-purple);
    line-height: 1.25;
    text-align: left;
}

.bb-tiles {
    display: flex;
    justify-content: center;
}

.bb-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--bb-text);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    padding: 1.25rem 1.5rem 1.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 28.75rem;
}

.bb-tile__title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--bb-purple);
}

/* methods */
.bb-methods {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.bb-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-purple);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.375rem;
    cursor: pointer;
    width: 3.25rem;
    height: 3.25rem;
    box-sizing: border-box;
}

.bb-method.is-active { border-color: var(--bb-purple); }

.bb-method--help {
    width: 2.5rem;
    height: 2.5rem;
}

.bb-hint {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--bb-text);
}

.bb-form-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--bb-purple);
}

.bb-panel--help .bb-help-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--bb-text);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.bb-panel--help .bb-help-list li + li {
    margin-top: 0.5rem;
}

.bb-btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 8rem;
    background: transparent;
    color: var(--bb-purple);
    border: 1px solid var(--bb-purple);
    text-decoration: none;
    box-sizing: border-box;
}

.bb-btn--ghost:hover {
    background: #eee9f2;
}

/* form */
.bb-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bb-text);
    padding: 0 0 0.625rem;
}

.bb-label + .bb-input,
.bb-label + .bb-pass-wrap {
    margin-bottom: 1rem;
}

.bb-input {
    width: 100%;
    min-height: var(--bb-control-h);
    padding: 0.625rem 0.875rem;
    border: 1px solid #c8c8c8;
    border-radius: 0.25rem;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
    color: #222;
    outline: none;
    font-family: inherit;
}

.bb-input:focus {
    border-color: var(--bb-purple);
    box-shadow: 0 0 0 1px var(--bb-purple);
}

.bb-pass-wrap { position: relative; }

.bb-pass-wrap .bb-input { padding-right: 2.75rem; }

.bb-pass-toggle {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9a9a9a;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
}

.bb-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--bb-text);
    cursor: pointer;
    user-select: none;
}

.bb-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--bb-purple);
    cursor: pointer;
}

.bb-btn {
    width: 100%;
    min-height: var(--bb-control-h);
    padding: 0.625rem 1rem;
    background: var(--bb-red);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.bb-btn:hover { background: #c40017; }

.bb-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.bb-links a {
    color: var(--bb-purple);
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bb-links a:hover { color: var(--bb-purple-dark); }

/* help */
.bb-help {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    margin: 2rem 0 0.5rem;
}

.bb-help-item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--bb-purple);
    text-decoration: none;
    font-size: 0.9375rem;
}

.bb-help-item:hover { text-decoration: underline; }

.bb-sep {
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 0;
}

/* social */
.bb-social {
    background: #fff;
    padding: 1.75rem 0 2rem;
}

.bb-social__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.bb-social__follow { text-align: center; }

.bb-social h3 {
    margin: 0 0 0.875rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bb-purple);
}

.bb-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.125rem;
}

.bb-social-icons a {
    display: inline-flex;
    color: var(--bb-purple);
}

.bb-stores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bb-store { display: inline-flex; line-height: 0; }

.bb-store img {
    height: 2.5rem;
    width: auto;
    display: block;
}

/* footer */
.bb-site-foot { margin-top: auto; }

.bb-site-foot__values {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.06) 42%, transparent 42%),
        linear-gradient(225deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 36%, transparent 36%),
        var(--bb-purple);
    color: #fff;
    padding: 2.25rem 0 2.5rem;
}

.bb-site-foot__title {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
}

.bb-site-foot__values a {
    color: #fff;
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bb-trust {
    background: #f3f3f3;
    padding: 2rem 0;
}

.bb-trust__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem 2.5rem;
}

.bb-trust__item { display: inline-flex; line-height: 0; }

.bb-trust__item img {
    height: 3.25rem;
    width: auto;
    max-width: 13.75rem;
    object-fit: contain;
    display: block;
}

.bb-bottom {
    background: #fff;
    border-top: 1px solid #ebebeb;
    padding: 1.75rem 0 2.25rem;
}

.bb-bottom__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

.bb-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 36rem;
}

.bb-legal__logo {
    height: 1.75rem;
    width: auto;
    display: block;
}

.bb-legal p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #666;
}

.bb-group { text-align: center; }

.bb-group p {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: #9a9a9a;
}

.bb-group img {
    height: 1.75rem;
    width: auto;
    display: block;
    margin: 0 auto;
}

.bb-top {
    position: fixed;
    right: 1.125rem;
    bottom: 5.5rem;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 2px solid var(--bb-purple);
    background: #fff;
    color: var(--bb-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.12);
}

.bb-top:hover { transform: translateY(-1px); }

/* Shared / other pages (legacy card — keep centered) */
.bb-card {
    background: #fff;
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    width: 100%;
    max-width: 26.25rem;
    padding: 2rem 2.25rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.bb-main:not(.bb-main--login):not(.bb-main--form) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bb-main:not(.bb-main--login):not(.bb-main--form) > .bb-card {
    margin-top: 1.5rem;
}

/* Old header markup without wrap — keep usable */
.bb-header > .bb-logo {
    margin: 0.75rem 1.5rem;
}

.bb-header > select.bb-lang,
.bb-header > .bb-lang > select {
    position: absolute;
    top: 1.1rem;
    right: 1.5rem;
    border: 1px solid #eee9f2;
    border-radius: 0.25rem;
    background: #fff;
    padding: 0.35rem 0.5rem;
    font-family: inherit;
    font-weight: 600;
    color: #4c4e54;
}

.bb-card h1 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--bb-purple);
    margin: 0 0 1.25rem;
}

.bb-card p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.bb-foot {
    background: transparent;
    color: #666;
    padding: 0.875rem 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.bb-foot a { color: #666; text-decoration: none; margin-left: 1rem; }

.bb-itsme-code {
    border: 2px solid var(--bb-purple);
    border-radius: var(--bb-radius);
    padding: 1.25rem;
    text-align: center;
    margin: 1.25rem 0;
    background: #faf5ff;
}

.bb-itsme-wrap {
    text-align: center;
}

.bb-itsme-badge {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bb-itsme);
    color: #fff;
    font-weight: 700;
    font-size: 0.6875rem;
    line-height: 3rem;
    letter-spacing: 0.02em;
}

.bb-challenge {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: #f5f0f9;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--bb-purple);
}

.bb-alert {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    background: #fff1f1;
    border: 1px solid #f5c2c2;
    border-radius: 0.375rem;
    color: #9b1c1c;
    font-size: 0.9375rem;
}

.bb-itsme-code small {
    display: block;
    font-size: 0.6875rem;
    color: var(--bb-purple);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.bb-itsme-code strong {
    font-size: 1.75rem;
    color: var(--bb-purple);
    letter-spacing: 0.05em;
}

.bb-timer {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bb-purple);
    margin: 0.75rem 0;
}

.bb-timer small {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #888;
}

.bb-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top-color: var(--bb-purple);
    border-radius: 50%;
    animation: bbspin 0.8s linear infinite;
    margin: 1rem auto;
}

@keyframes bbspin { to { transform: rotate(360deg); } }

.bb-success { text-align: center; padding: 1.25rem 0; }

.bb-success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--bb-purple);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    line-height: 4rem;
    margin: 0 auto 1rem;
}

.bb-success h1 { color: #333; font-size: 1.375rem; margin-bottom: 0.5rem; }
.bb-success p { color: #666; font-size: 0.875rem; }
.bb-ref { font-size: 0.6875rem; color: #999; margin-top: 1rem; }

/* Desktop */
@media (min-width: 810px) {
    .bb-links {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .bb-social__row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .bb-social__follow { text-align: left; }

    .bb-social h3 {
        display: inline-block;
        margin: 0 1rem 0 0;
        vertical-align: middle;
    }

    .bb-social-icons {
        display: inline-flex;
        vertical-align: middle;
    }

    .bb-bottom__row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .bb-legal {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
        max-width: 70%;
    }

    .bb-group {
        text-align: right;
        flex-shrink: 0;
    }

    .bb-group img { margin: 0 0 0 auto; }
}

@media (max-width: 809px) {
    .bb-page-title { font-size: 1.125rem; }
    .bb-logo { width: 7rem; }
}
