/* ====== 헤더 메뉴 버튼 ====== */
.main-navigation .menu-item.ggultv-auth > a,
.main-navigation .menu-item.ggultv-auth > a:visited {
    display: inline-block;
    margin: 6px 6px;
    padding: 6px 16px;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.6;
}
.main-navigation .menu-item.ggultv-auth--signup > a,
.main-navigation .menu-item.ggultv-auth--signup > a:visited {
    background: #16a34a;
}
.main-navigation .menu-item.ggultv-auth--out > a,
.main-navigation .menu-item.ggultv-auth--out > a:visited {
    background: #64748b;
}
.main-navigation .menu-item.ggultv-auth > a:hover { opacity: .9; }

.main-navigation .menu-item.ggultv-auth--user > span {
    display: inline-block;
    padding: 6px 8px 6px 16px;
    font-weight: 700;
    color: inherit;
}

/* 모바일 슬라이드아웃(오프캔버스) 메뉴 — 메뉴 아래 중앙 정렬 버튼 */
.slideout-navigation .menu-item.ggultv-auth { text-align: center; }
.slideout-navigation .menu-item.ggultv-auth--in {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(127, 127, 127, .25);
}
.slideout-navigation .menu-item.ggultv-auth > a,
.slideout-navigation .menu-item.ggultv-auth > a:visited {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin: 6px auto;
    padding: 12px 28px;
    border-radius: 999px;
    text-align: center;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.4;
}
.slideout-navigation .menu-item.ggultv-auth--in > a,
.slideout-navigation .menu-item.ggultv-auth--in > a:visited { background: #1d4ed8 !important; }
.slideout-navigation .menu-item.ggultv-auth--signup > a,
.slideout-navigation .menu-item.ggultv-auth--signup > a:visited { background: #16a34a !important; }
.slideout-navigation .menu-item.ggultv-auth--out > a,
.slideout-navigation .menu-item.ggultv-auth--out > a:visited { background: #64748b !important; }
.slideout-navigation .menu-item.ggultv-auth--user > span {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    color: inherit;
}

/* ====== 모달 ====== */
body.ggultv-auth-lock { overflow: hidden; }

.ggultv-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483646; /* 오프캔버스 패널보다 위 */
    display: none;
}
.ggultv-auth-modal.is-open { display: block; }

.ggultv-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(2px);
}

.ggultv-auth-dialog {
    position: relative;
    width: 92%;
    max-width: 380px;
    margin: 8vh auto 0;
    background: #fff;
    color: #1a1d21;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: 44px 22px 22px;
    animation: ggultv-auth-pop .18s ease-out;
}
@keyframes ggultv-auth-pop {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.ggultv-auth-x {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 22px; line-height: 1;
    color: #9aa3af; cursor: pointer;
    transition: background .15s, color .15s;
}
.ggultv-auth-x:hover { background: #eef2f7; color: #1a1d21; }

.ggultv-auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e6e8eb;
}
.ggultv-auth-tab {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.ggultv-auth-tab.is-active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.ggultv-auth-form.is-hidden { display: none; }
.ggultv-auth-h { margin: 0 0 14px; font-size: 18px; font-weight: 800; }

.ggultv-auth-form input[type="text"],
.ggultv-auth-form input[type="email"],
.ggultv-auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #1a1d21;
}
.ggultv-auth-form input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}

.ggultv-auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 12px;
    font-size: 13px;
    color: #6b7280;
}
.ggultv-auth-remember input { margin: 0; }

.ggultv-auth-submit {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: #1d4ed8;
    cursor: pointer;
}
.ggultv-auth-form[data-form="register"] .ggultv-auth-submit { background: #16a34a; }
.ggultv-auth-submit:hover { opacity: .92; }
.ggultv-auth-submit:disabled { opacity: .6; cursor: default; }

.ggultv-auth-msg {
    margin: 10px 0 0;
    min-height: 18px;
    font-size: 13px;
    text-align: center;
}
.ggultv-auth-msg.is-err { color: #dc2626; }
.ggultv-auth-msg.is-ok  { color: #16a34a; }

.ggultv-auth-switch {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}
.ggultv-auth-switch a { color: #1d4ed8; font-weight: 700; }

@media (prefers-color-scheme: dark) {
    .ggultv-auth-dialog { background: #14171c; color: #e5e7eb; }
    .ggultv-auth-tabs { border-bottom-color: #2a2f37; }
    .ggultv-auth-form input { background: #0f1115; border-color: #2a2f37; color: #e5e7eb; }
    .ggultv-auth-x { color: #6b7280; }
    .ggultv-auth-x:hover { background: #20242b; color: #e5e7eb; }
}
