/**
 * Block Skin: outlogin/mublo-home-login
 *
 * MUBLO account signal card.
 * 모든 선택자는 스킨 루트 아래에 한정하며 프레임 CSS에 의존하지 않는다.
 */

.block-outlogin--mublo-home-login {
    --mhl-accent: #1463f3;
    --mhl-accent-bright: #2b76f5;
    --mhl-accent-deep: #0b55dc;
    --mhl-ink: #101828;
    --mhl-text: #344054;
    --mhl-muted: #7b8799;
    --mhl-line: #dce4f0;
    --mhl-line-strong: #cbd6e6;
    --mhl-surface: rgba(255, 255, 255, 0.98);
    --mhl-surface-soft: rgba(247, 249, 252, 0.94);
    --mhl-input: rgba(255, 255, 255, 0.94);
    --mhl-grid: rgba(20, 99, 243, 0.07);
    width: 100%;
    min-width: 0;
    color: var(--mhl-ink);
    font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.block-outlogin--mublo-home-login,
.block-outlogin--mublo-home-login *,
.block-outlogin--mublo-home-login *::before,
.block-outlogin--mublo-home-login *::after {
    box-sizing: border-box;
}

.block-outlogin--mublo-home-login .mublo-home-login__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 스킨 자체 PC/모바일 노출 유틸리티 */
.block-outlogin--mublo-home-login.d-none {
    display: none !important;
}

.block-outlogin--mublo-home-login.d-block {
    display: block !important;
}

@media (min-width: 768px) {
    .block-outlogin--mublo-home-login.d-md-none {
        display: none !important;
    }

    .block-outlogin--mublo-home-login.d-md-block {
        display: block !important;
    }
}

/* 외곽 표면: 메인 빌더의 그리드와 Q&A의 얇은 윈도우 선을 결합 */
.block-outlogin--mublo-home-login .block-outlogin__content {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 15px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(40, 119, 255, 0.11), transparent 35%),
        var(--mhl-surface);
    border: 1px solid var(--mhl-line);
    border-radius: 15px;
    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.055),
        0 2px 7px rgba(15, 23, 42, 0.024),
        inset 0 1px rgba(255, 255, 255, 0.85);
}

.block-outlogin--mublo-home-login .block-outlogin__content::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(var(--mhl-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--mhl-grid) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 48%);
    mask-image: linear-gradient(135deg, #000 0%, transparent 48%);
}

.block-outlogin--mublo-home-login .block-outlogin__content::after {
    position: absolute;
    top: 0;
    right: 16px;
    left: 16px;
    z-index: -1;
    height: 1px;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(20, 99, 243, 0.65) 45%, rgba(73, 199, 203, 0.55) 70%, transparent);
}

.block-outlogin--mublo-home-login .block-outlogin__content > * {
    position: relative;
    z-index: 1;
}

/* 선택적으로 켠 블록 제목도 같은 카드 언어로 정리 */
.block-outlogin--mublo-home-login > .block-title {
    margin-bottom: 10px;
}

.block-outlogin--mublo-home-login > .block-title .block-title__text {
    color: var(--title-color, var(--mhl-ink));
    font-size: var(--title-size-pc, 15px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* 로그인 상태 */
.block-outlogin--mublo-home-login .block-outlogin__info {
    position: relative;
    margin-bottom: 14px;
    padding-top: 54px;
    color: var(--mhl-muted);
    font-size: 0.8125rem;
    line-height: 1.55;
    text-align: center;
}

.block-outlogin--mublo-home-login .mublo-home-login__avatar {
    display: grid;
    position: absolute;
    top: 0;
    left: 50%;
    width: 44px;
    height: 44px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2b76f5, #4f46e5);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 13px;
    box-shadow: 0 7px 16px rgba(20, 99, 243, 0.22);
    transform: translateX(-50%);
}

.block-outlogin--mublo-home-login .mublo-home-login__avatar-image {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-outlogin--mublo-home-login .mublo-home-login__avatar-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.block-outlogin--mublo-home-login .block-outlogin__name {
    color: var(--mhl-ink);
    font-weight: 800;
}

.block-outlogin--mublo-home-login .block-outlogin__level {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    padding: 2px 7px;
    color: var(--mhl-accent-deep);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: middle;
    background: rgba(20, 99, 243, 0.08);
    border: 1px solid rgba(20, 99, 243, 0.14);
    border-radius: 999px;
}

.block-outlogin--mublo-home-login .block-outlogin__buttons {
    display: flex;
    gap: 8px;
}

/* 공용 버튼 */
.block-outlogin--mublo-home-login .block-outlogin__btn {
    display: inline-flex;
    position: relative;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    color: inherit;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--profile,
.block-outlogin--mublo-home-login .block-outlogin__btn--login {
    color: #fff;
    background: var(--mhl-accent);
    border-color: var(--mhl-accent-deep);
    box-shadow: none;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--logout {
    color: var(--mhl-text);
    background: var(--mhl-input);
    border-color: var(--mhl-line);
    box-shadow: none;
}

.block-outlogin--mublo-home-login .block-outlogin__btn:hover {
    text-decoration: none;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--profile:hover,
.block-outlogin--mublo-home-login .block-outlogin__btn--login:hover {
    color: #fff;
    background: var(--mhl-accent-deep);
    box-shadow: none;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--logout:hover {
    color: var(--mhl-ink);
    background: var(--mhl-surface-soft);
    border-color: var(--mhl-line-strong);
    box-shadow: none;
}

.block-outlogin--mublo-home-login .block-outlogin__btn:active {
    box-shadow: none;
}

.block-outlogin--mublo-home-login .block-outlogin__btn:focus-visible,
.block-outlogin--mublo-home-login .block-outlogin__link:focus-visible,
.block-outlogin--mublo-home-login .btn-sns:focus-visible {
    outline: 2px solid var(--mhl-accent);
    outline-offset: 2px;
}

/* 연결된 계정/보안 노드 */
.block-outlogin--mublo-home-login .mublo-home-login__form {
    position: relative;
}

.block-outlogin--mublo-home-login .block-outlogin__field {
    position: relative;
    margin-bottom: 8px;
}

.block-outlogin--mublo-home-login .block-outlogin__field::before {
    position: absolute;
    top: 7px;
    left: 8px;
    z-index: 2;
    width: 26px;
    height: 26px;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(20, 99, 243, 0.13);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.block-outlogin--mublo-home-login .block-outlogin__field:first-child::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231463f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / 14px 14px no-repeat,
        #edf4ff;
}

.block-outlogin--mublo-home-login .block-outlogin__field:nth-child(2)::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231463f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / 14px 14px no-repeat,
        #edf4ff;
}

.block-outlogin--mublo-home-login .block-outlogin__input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px 9px 43px;
    color: var(--mhl-ink);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 550;
    line-height: 1.5;
    background: var(--mhl-input);
    border: 1px solid var(--mhl-line);
    border-radius: 10px;
    outline: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025), inset 0 1px rgba(255, 255, 255, 0.75);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.block-outlogin--mublo-home-login .block-outlogin__input::placeholder {
    color: var(--mhl-muted);
    font-weight: 450;
    opacity: 1;
}

.block-outlogin--mublo-home-login .block-outlogin__input:hover {
    border-color: var(--mhl-line-strong);
}

.block-outlogin--mublo-home-login .block-outlogin__input:focus {
    background: #fff;
    border-color: var(--mhl-accent);
    box-shadow: 0 0 0 3px rgba(20, 99, 243, 0.13), 0 2px 5px rgba(16, 24, 40, 0.04);
}

/* 브라우저 자동완성 색도 스킨 표면에 맞춘다. */
.block-outlogin--mublo-home-login .block-outlogin__input:-webkit-autofill,
.block-outlogin--mublo-home-login .block-outlogin__input:-webkit-autofill:hover,
.block-outlogin--mublo-home-login .block-outlogin__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--mhl-ink);
    -webkit-box-shadow: 0 0 0 1000px #f8fbff inset, 0 0 0 1px rgba(20, 99, 243, 0.12);
    caret-color: var(--mhl-ink);
    transition: background-color 9999s ease-out 0s;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--login {
    width: 100%;
    min-height: 43px;
    margin-top: 4px;
    padding: 10px 40px;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--login::before {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.92;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--login::after {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.72);
    content: "→";
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.18s ease;
}

.block-outlogin--mublo-home-login .block-outlogin__btn--login:hover::after {
    transform: translateX(2px);
}

.block-outlogin--mublo-home-login .block-outlogin__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 12px;
    font-size: 0.75rem;
    line-height: 1.5;
}

.block-outlogin--mublo-home-login .block-outlogin__link {
    display: inline-flex;
    align-items: center;
    color: var(--mhl-muted);
    font-weight: 550;
    text-decoration: none;
    transition: color 0.15s ease;
}

.block-outlogin--mublo-home-login .block-outlogin__link + .block-outlogin__link::before {
    width: 1px;
    height: 10px;
    margin: 0 11px;
    content: "";
    background: var(--mhl-line-strong);
}

.block-outlogin--mublo-home-login .block-outlogin__link:hover {
    color: var(--mhl-accent);
    text-decoration: none;
}

/* 플러그인이 주입하는 SNS 로그인 */
.block-outlogin--mublo-home-login .sns-login-section {
    margin-top: 19px;
}

.block-outlogin--mublo-home-login .sns-login-divider {
    position: relative;
    margin: 15px 0;
    color: var(--mhl-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.block-outlogin--mublo-home-login .sns-login-divider::before,
.block-outlogin--mublo-home-login .sns-login-divider::after {
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--mhl-line-strong));
}

.block-outlogin--mublo-home-login .sns-login-divider::before {
    left: 0;
}

.block-outlogin--mublo-home-login .sns-login-divider::after {
    right: 0;
    transform: rotate(180deg);
}

.block-outlogin--mublo-home-login .sns-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.block-outlogin--mublo-home-login .btn-sns {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 43px;
    padding: 10px 38px;
    overflow: hidden;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    transition: filter 0.15s ease, background-color 0.15s ease;
}

.block-outlogin--mublo-home-login .btn-sns:hover {
    text-decoration: none;
    filter: brightness(0.97);
    box-shadow: none;
}

.block-outlogin--mublo-home-login .btn-sns--naver,
.block-outlogin--mublo-home-login .btn-sns--naver:hover {
    color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' d='M4 3h3.8l3.1 4.6V3H14v12h-3.7L7.1 10.3V15H4z'/%3E%3C/svg%3E") 12px center / 18px 18px no-repeat,
        #03c75a;
    border-color: #02ad4f;
}

.block-outlogin--mublo-home-login .btn-sns--kakao,
.block-outlogin--mublo-home-login .btn-sns--kakao:hover {
    color: #191919;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23191919' d='M9 2.5c-3.9 0-7 2.4-7 5.3 0 1.9 1.3 3.6 3.3 4.5l-.7 2.6c-.1.3.2.5.4.3l3.1-2.1.9.1c3.9 0 7-2.4 7-5.4S12.9 2.5 9 2.5z'/%3E%3C/svg%3E") 12px center / 18px 18px no-repeat,
        #fee500;
    border-color: #e8d100;
}

.block-outlogin--mublo-home-login .btn-sns--google,
.block-outlogin--mublo-home-login .btn-sns--google:hover {
    color: #3c4043;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%234285F4' d='M16 9.2c0-.6-.1-1.1-.2-1.6H9v3h3.9c-.2 1-.8 1.8-1.6 2.3v2h2.6c1.5-1.4 2.1-3.4 2.1-5.7z'/%3E%3Cpath fill='%2334A853' d='M9 16c2 0 3.7-.7 4.9-1.8l-2.6-2c-.7.5-1.5.7-2.3.7-1.9 0-3.6-1.3-4.2-3H2.1V12C3.4 14.4 6 16 9 16z'/%3E%3Cpath fill='%23FBBC05' d='M4.8 9.9a4.3 4.3 0 0 1 0-2.8V5H2.1a7 7 0 0 0 0 7z'/%3E%3Cpath fill='%23EA4335' d='M9 4.1c1.1 0 2.2.4 3 1.2l2.2-2.2A7 7 0 0 0 2.1 5l2.7 2.1c.6-1.7 2.3-3 4.2-3z'/%3E%3C/svg%3E") 12px center / 18px 18px no-repeat,
        #fff;
    border-color: #d5dce6;
}

/* Q&A와 같은 어두운 패널 팔레트 */
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login {
    --mhl-ink: #f0f3f7;
    --mhl-text: #d5dde7;
    --mhl-muted: #8e9aaa;
    --mhl-line: #39434f;
    --mhl-line-strong: #4a5665;
    --mhl-surface: rgba(17, 22, 29, 0.98);
    --mhl-surface-soft: rgba(24, 31, 40, 0.98);
    --mhl-input: rgba(16, 21, 28, 0.94);
    --mhl-grid: rgba(143, 183, 239, 0.065);
    color-scheme: dark;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__content {
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 111, 159, 0.18), transparent 36%),
        var(--mhl-surface);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.035);
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__input:focus {
    background: #10151c;
    box-shadow: 0 0 0 3px rgba(79, 132, 211, 0.18), 0 2px 5px rgba(0, 0, 0, 0.18);
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__field::before {
    border-color: rgba(143, 183, 239, 0.24);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__field:first-child::before,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__field:nth-child(2)::before {
    background-color: #182536;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__input:-webkit-autofill,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__input:-webkit-autofill:hover,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--mhl-ink);
    -webkit-box-shadow: 0 0 0 1000px #111923 inset, 0 0 0 1px rgba(143, 183, 239, 0.18);
    caret-color: var(--mhl-ink);
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .block-outlogin__btn--logout:hover {
    background: #1b232d;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .btn-sns--google,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark) .block-outlogin--mublo-home-login .btn-sns--google:hover {
    color: #e5eaf0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%234285F4' d='M16 9.2c0-.6-.1-1.1-.2-1.6H9v3h3.9c-.2 1-.8 1.8-1.6 2.3v2h2.6c1.5-1.4 2.1-3.4 2.1-5.7z'/%3E%3Cpath fill='%2334A853' d='M9 16c2 0 3.7-.7 4.9-1.8l-2.6-2c-.7.5-1.5.7-2.3.7-1.9 0-3.6-1.3-4.2-3H2.1V12C3.4 14.4 6 16 9 16z'/%3E%3Cpath fill='%23FBBC05' d='M4.8 9.9a4.3 4.3 0 0 1 0-2.8V5H2.1a7 7 0 0 0 0 7z'/%3E%3Cpath fill='%23EA4335' d='M9 4.1c1.1 0 2.2.4 3 1.2l2.2-2.2A7 7 0 0 0 2.1 5l2.7 2.1c.6-1.7 2.3-3 4.2-3z'/%3E%3C/svg%3E") 12px center / 18px 18px no-repeat,
        #171e27;
    border-color: #46515f;
}

@media (max-width: 640px) {
    .block-outlogin--mublo-home-login > .block-title .block-title__text {
        font-size: var(--title-size-mo, 14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .block-outlogin--mublo-home-login .block-outlogin__btn,
    .block-outlogin--mublo-home-login .block-outlogin__btn--login::after,
    .block-outlogin--mublo-home-login .block-outlogin__input,
    .block-outlogin--mublo-home-login .block-outlogin__link,
    .block-outlogin--mublo-home-login .btn-sns {
        transition: none;
    }

    .block-outlogin--mublo-home-login .block-outlogin__btn:hover,
    .block-outlogin--mublo-home-login .btn-sns:hover {
        transform: none;
    }
}
