/* 로그인 오버레이 모달 (항목 1) — 기존 색상 변수(base.css) 재사용, 시각 회귀 최소화. */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
}

.login-modal-overlay[hidden] {
    display: none;
}

.login-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--panel, #fff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24);
}

.login-modal-title {
    margin: 0 0 4px;
    font-size: 20px;
}

.login-modal-sub {
    margin: 0 0 20px;
    color: var(--muted, #64748b);
    font-size: 14px;
}

.login-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--muted, #64748b);
    cursor: pointer;
    border-radius: 8px;
}

.login-modal-close:hover {
    background: var(--accent-soft, #eff6ff);
    color: var(--accent, #2563eb);
}

.login-modal-providers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    background: var(--panel, #fff);
    color: var(--text, #0f172a);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.provider-button:hover {
    border-color: var(--accent, #2563eb);
    background: var(--accent-soft, #eff6ff);
}

.provider-button:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 2px;
}

.provider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .login-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .login-modal {
        max-width: none;
        border-radius: 12px 12px 0 0;
    }
}
